jrottman
Programmer
- Jun 17, 2005
- 47
I am working on a search screen, in the returned results, I have one column that I need to return where the results for that column are combined. IE if I have two returned values for the column partyName, I need them to show up as one record, instead of two. Here is the query that I am currently using.
SELECT
tbl_smartPanel_propInfo_Sale.fld_fileNum,
tbl_smartPanel_propInfo_Sale.fld_mlsNum,
tbl_smartPanel_propInfo_Sale.fld_propStatus,
tbl_smartPanel_propInfo_Sale.fld_propAddress,
tbl_smartPanel_propInfo_Sale.fld_propCoe,
tbl_smartPanel_propInfo_Sale.fld_propPrice,
tbl_smartPanel_propInfo_Sale_Parties.fld_partyType,
tbl_smartPanel_propInfo_Sale_Parties.fld_partyName
FROM
tbl_smartPanel_propInfo_Sale
Inner Join tbl_smartPanel_propInfo_Sale_Parties ON tbl_smartPanel_propInfo_Sale.fld_fileNum = tbl_smartPanel_propInfo_Sale_Parties.fld_fileNum
WHERE
tbl_smartPanel_propInfo_Sale.fld_PropStreet = 'Baseline' AND
tbl_smartPanel_propInfo_Sale_Parties.fld_partyType = 'HomeSmart'
SELECT
tbl_smartPanel_propInfo_Sale.fld_fileNum,
tbl_smartPanel_propInfo_Sale.fld_mlsNum,
tbl_smartPanel_propInfo_Sale.fld_propStatus,
tbl_smartPanel_propInfo_Sale.fld_propAddress,
tbl_smartPanel_propInfo_Sale.fld_propCoe,
tbl_smartPanel_propInfo_Sale.fld_propPrice,
tbl_smartPanel_propInfo_Sale_Parties.fld_partyType,
tbl_smartPanel_propInfo_Sale_Parties.fld_partyName
FROM
tbl_smartPanel_propInfo_Sale
Inner Join tbl_smartPanel_propInfo_Sale_Parties ON tbl_smartPanel_propInfo_Sale.fld_fileNum = tbl_smartPanel_propInfo_Sale_Parties.fld_fileNum
WHERE
tbl_smartPanel_propInfo_Sale.fld_PropStreet = 'Baseline' AND
tbl_smartPanel_propInfo_Sale_Parties.fld_partyType = 'HomeSmart'