![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am not sure how to write the following query: Simplified table structure: ID SENT DATE 123 Y 5/1/2006 124 N 5/2/2006 124 Y 5/1/2006 125 N 5/2/2006 I want to return a row if SENT = 'N' AND also that ID has NEVER had a 'Y' So in the above example the only row I would want returned would be ID = 125 The table structure and query are much more complicated than that but that is the part that I am unsure about. All help appreciated, thanks |
#3
| |||
| |||
|
|
I am not sure how to write the following query: Simplified table structure: ID SENT DATE 123 Y 5/1/2006 124 N 5/2/2006 124 Y 5/1/2006 125 N 5/2/2006 I want to return a row if SENT = 'N' AND also that ID has NEVER had a 'Y' So in the above example the only row I would want returned would be ID = 125 The table structure and query are much more complicated than that but that is the part that I am unsure about. All help appreciated, thanks |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
It is not homework, I am an application systems analyst and was a little unsure about part of a query, that was sudo code and a sudo table not the actual column names, just a very simplified representation. If you can't be bothered to assist people that's fine, don't post at all! |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |