Hi all..
Using CR9 and ODBC connection to SQL Server 7 database..
I am trying to select values from table A based on values from table B.
example
table B contains values 'monkey', 'dog', 'cat', etc...
i want to select values from table A which are not in that master list of values in table B.
i do not want to use the not in ['monkey', 'dog', 'cat'] method because the list in table B contains hundreds of values which i dont want to type out by hand, or select individually from the list, and it is also quite possible that the values in table B could change down the road and i will need to run this report again.
is there a way to programatically compare table A values against table B values and return those from table A which are not present in table B?
TIA
Jon
Using CR9 and ODBC connection to SQL Server 7 database..
I am trying to select values from table A based on values from table B.
example
table B contains values 'monkey', 'dog', 'cat', etc...
i want to select values from table A which are not in that master list of values in table B.
i do not want to use the not in ['monkey', 'dog', 'cat'] method because the list in table B contains hundreds of values which i dont want to type out by hand, or select individually from the list, and it is also quite possible that the values in table B could change down the road and i will need to run this report again.
is there a way to programatically compare table A values against table B values and return those from table A which are not present in table B?
TIA
Jon