I need to write a query to select data from a table, and then go back and select data from the same table based on different criteria excluding any data selected in the previously run select statement. For example,
I have a two tables:
Table 1 has three columns: Name 1, Name 2, Data 1
Table 2 has one column of names: Names
I need to select all rows from Table 1 where Table 1.Name 2 = Table 2.Names. Next I need to go back and select from Table 1 (excluding any rows returned by the first select statement) all data where Table 1.Name 1 = Table 2.Names.
I hope that explains it, can you suggest something?
Thank you!!!
Candy T
I have a two tables:
Table 1 has three columns: Name 1, Name 2, Data 1
Table 2 has one column of names: Names
I need to select all rows from Table 1 where Table 1.Name 2 = Table 2.Names. Next I need to go back and select from Table 1 (excluding any rows returned by the first select statement) all data where Table 1.Name 1 = Table 2.Names.
I hope that explains it, can you suggest something?
Thank you!!!
Candy T