All,
I have a question that any assistance with on direction would be greatly appreciated.
What I have is in one database table I have a list of patients and in another database table I have a list of patients. What I want to do is create a return of a dataset that includes only the unique instance and from each table. The location of the database running the query really wouldn't matter.
I know I could do a query on one database with a NOT EXISTS sub query accessing the other database table and putting the information into a temporary table (or a SELECT INTO) but how do I get it the other way? Meaning from the second database table and does not exist in the database table?
Any thoughts or examples would be greatly appreciated?
Thanks
I have a question that any assistance with on direction would be greatly appreciated.
What I have is in one database table I have a list of patients and in another database table I have a list of patients. What I want to do is create a return of a dataset that includes only the unique instance and from each table. The location of the database running the query really wouldn't matter.
I know I could do a query on one database with a NOT EXISTS sub query accessing the other database table and putting the information into a temporary table (or a SELECT INTO) but how do I get it the other way? Meaning from the second database table and does not exist in the database table?
Any thoughts or examples would be greatly appreciated?
Thanks