J
joel2600
I am using access to query an Oracle DB... my query is as follows
SELECT a.DEFECT_ID, b.STATION_NO, b.CODE, b.DEFECT_STATUS, b.PO
FROM a INNER JOIN b ON a.DEFECT_SEQUENCE_NO = b.ID_DETAIL
WHERE (((b.STATION_NO)="BLDG12-MAINCAB") AND ((b.CODE)<>"B7" And
(b.CODE)<>"B18C") AND ((b.DEFECT_STATUS)="Recap") AND ((b.PO) Not Like
"1986" And (b.PO) Not Like "1982" And (b.PO) Not Like "2103" And (b.PO)
Not Like "1987"));
i renamed my table aliases a and b to make this more simple....
other than changing the table aliases to make this more readable, this
is all SQL that access had created from what i designed.
the problem is that even though i specified that b.defect_status needs
to equal "Recap", I still get records back that have something
completley different in that column like "Signed Off"
Does anyone know why I'm getting data that I'm not asking for? Any
help would be appreciated.
Joel
SELECT a.DEFECT_ID, b.STATION_NO, b.CODE, b.DEFECT_STATUS, b.PO
FROM a INNER JOIN b ON a.DEFECT_SEQUENCE_NO = b.ID_DETAIL
WHERE (((b.STATION_NO)="BLDG12-MAINCAB") AND ((b.CODE)<>"B7" And
(b.CODE)<>"B18C") AND ((b.DEFECT_STATUS)="Recap") AND ((b.PO) Not Like
"1986" And (b.PO) Not Like "1982" And (b.PO) Not Like "2103" And (b.PO)
Not Like "1987"));
i renamed my table aliases a and b to make this more simple....
other than changing the table aliases to make this more readable, this
is all SQL that access had created from what i designed.
the problem is that even though i specified that b.defect_status needs
to equal "Recap", I still get records back that have something
completley different in that column like "Signed Off"
Does anyone know why I'm getting data that I'm not asking for? Any
help would be appreciated.
Joel