M
Metalteck
When I query a database I get a total of 61510 records, when in fact, it
should be more like 3000. Please help me eliminate the duplicate records. I
tried changing the joins from inner to outer, but received a syntax error.
BSYMCPP AND BSYMPTP ARE THE TABLES I QUERY FROM.
Fields that are being used are cpcpt and ptde30.
Cpcpt is a number field, for ex 95819, and ptde30 is a description field,
such as ankle fracture.
This is the Select Statement:
SELECT BSYMCPP.CPCPT, BSYMPTP.PTDE30
FROM BSYMCPP INNER JOIN BSYMPTP ON (BSYMCPP.[CPHSP#] = BSYMPTP.[PTHSP#]) AND
(BSYMCPP.CPCPT = BSYMPTP.[PTPRO#])
ORDER BY BSYMCPP.CPCPT, BSYMPTP.PTDE30;
should be more like 3000. Please help me eliminate the duplicate records. I
tried changing the joins from inner to outer, but received a syntax error.
BSYMCPP AND BSYMPTP ARE THE TABLES I QUERY FROM.
Fields that are being used are cpcpt and ptde30.
Cpcpt is a number field, for ex 95819, and ptde30 is a description field,
such as ankle fracture.
This is the Select Statement:
SELECT BSYMCPP.CPCPT, BSYMPTP.PTDE30
FROM BSYMCPP INNER JOIN BSYMPTP ON (BSYMCPP.[CPHSP#] = BSYMPTP.[PTHSP#]) AND
(BSYMCPP.CPCPT = BSYMPTP.[PTPRO#])
ORDER BY BSYMCPP.CPCPT, BSYMPTP.PTDE30;