S
Shaukat
I have 3 "TYPES" of duplicates. Here is the table:
ID classID Attend_date
1 625 12/13/06
1 292 5/16/006
2 244 (empty/null)
2 260 (empty/null)
2 149 7/14/006
3 784 (empty/null)
3 395 (empty/null)
3 188 (empty/null)
3 976 (empty/null)
In type 1 records, the guy with ID 1, registered for 2 classes and attended
those classes. In type 2 records, the person with ID 2, registered for 3
classes but attended only one (at least one) class. In type 3 records, the
student with ID 3 registered for 4 classes but did not show up for any.
I want to write a query which picks up only the 3rd type of records: the
students who register for any number of classes (say, 1 to 8) but do not
attend any one of them. If they attend at least one of the classes they
registered in, they should not be picked up.
I will appreciate the help.
Shaukat
ID classID Attend_date
1 625 12/13/06
1 292 5/16/006
2 244 (empty/null)
2 260 (empty/null)
2 149 7/14/006
3 784 (empty/null)
3 395 (empty/null)
3 188 (empty/null)
3 976 (empty/null)
In type 1 records, the guy with ID 1, registered for 2 classes and attended
those classes. In type 2 records, the person with ID 2, registered for 3
classes but attended only one (at least one) class. In type 3 records, the
student with ID 3 registered for 4 classes but did not show up for any.
I want to write a query which picks up only the 3rd type of records: the
students who register for any number of classes (say, 1 to 8) but do not
attend any one of them. If they attend at least one of the classes they
registered in, they should not be picked up.
I will appreciate the help.
Shaukat