S
Scottie
I need to be able to write a complex iif statement that will allow me
to query the data below.
Date Type Code31 Code43 Code42
23-May-06 P 122 39425 3493
23-May-06 T 0 10256 324
23-May-06 N 1074 3995 1507
24-May-06 P 61 40749 3363
24-May-06 N 992 3404 1416
24-May-06 T 29 10537 440
These are the results that I want to be returned. The "P" event that
occurs on 24-May-06 needs to be associated with the "T" and "N" events
that occur on 23-May-06. I can't figure out how to properly write the
statement.
Date Type Code31 Code43 Code42
23-May-06 T 0 10256 324
23-May-06 N 1074 3995 1507
24-May-06 P 61 40749 3363
Any help would be greatly appreciated.
Thanks. Scott
to query the data below.
Date Type Code31 Code43 Code42
23-May-06 P 122 39425 3493
23-May-06 T 0 10256 324
23-May-06 N 1074 3995 1507
24-May-06 P 61 40749 3363
24-May-06 N 992 3404 1416
24-May-06 T 29 10537 440
These are the results that I want to be returned. The "P" event that
occurs on 24-May-06 needs to be associated with the "T" and "N" events
that occur on 23-May-06. I can't figure out how to properly write the
statement.
Date Type Code31 Code43 Code42
23-May-06 T 0 10256 324
23-May-06 N 1074 3995 1507
24-May-06 P 61 40749 3363
Any help would be greatly appreciated.
Thanks. Scott