Hi - It seems like it should be simple... but I can't figure this out!
The code I have been working on, but may be entirely on wrong track:
SELECT DISTINCT ORDER_NUMBER, TESTING_DATE, Category, Passing_Score
FROM qry_Database
WHERE (((TESTING_DATE)=#5/8/2004 8:30:0#) AND ((Category)="Big")) AND ((ORDER_NUMBER) not in (SELECT ORDER_NUMBER FROM qry_Database WHERE Passing_Score=70))
qry_database:
01 5/8/04 Big 70
01 5/8/04 Big 75
02 5/8/04 Big 80
02 5/8/04 Big 75
02 5/8/04 Big 75
03 5/8/04 Big 70
04 5/8/04 Big 80
04 5/8/04 Big 75
05 5/8/04 Big 80
i'm only trying to derive the ones marked below with * by it, which means any Order Numbers that do not include an item that requires passing_score=70:
01 5/8/04 Big 70
01 5/8/04 Big 75
02 5/8/04 Big 80 *
02 5/8/04 Big 75 *
03 5/8/04 Big 70
04 5/8/04 Big 70
04 5/8/04 Big 75
04 5/8/04 Big 80
05 5/8/04 Big 80 *
any help GREATLY appreciated!!!
The code I have been working on, but may be entirely on wrong track:
SELECT DISTINCT ORDER_NUMBER, TESTING_DATE, Category, Passing_Score
FROM qry_Database
WHERE (((TESTING_DATE)=#5/8/2004 8:30:0#) AND ((Category)="Big")) AND ((ORDER_NUMBER) not in (SELECT ORDER_NUMBER FROM qry_Database WHERE Passing_Score=70))
qry_database:
01 5/8/04 Big 70
01 5/8/04 Big 75
02 5/8/04 Big 80
02 5/8/04 Big 75
02 5/8/04 Big 75
03 5/8/04 Big 70
04 5/8/04 Big 80
04 5/8/04 Big 75
05 5/8/04 Big 80
i'm only trying to derive the ones marked below with * by it, which means any Order Numbers that do not include an item that requires passing_score=70:
01 5/8/04 Big 70
01 5/8/04 Big 75
02 5/8/04 Big 80 *
02 5/8/04 Big 75 *
03 5/8/04 Big 70
04 5/8/04 Big 70
04 5/8/04 Big 75
04 5/8/04 Big 80
05 5/8/04 Big 80 *
any help GREATLY appreciated!!!