new_to_sql
Technical User
Hi all,
Thanks in advance for your help. I have two queries that have a common field but the columns are not the same other than the common field. I need data from both queries if query A and query B common field "ID" are the same. Note query B has more data than query A. I want to pull in data from both queries if query A "ID" is found/matched in query B. I tried the below but I keep getting syntax error. I tried using query wizard and join "ID" field but access hangs and crashes or only shows me data from one of the queries
Select * FROM [Query A] INTERSECT [Query B]
Where[Query A].[ID] =[Query By].[ID];
Not sure what I am doing wrong, but if you can help guide me to right solution that would be greatly appreciated.
Thank you in advance for your help.
Thanks in advance for your help. I have two queries that have a common field but the columns are not the same other than the common field. I need data from both queries if query A and query B common field "ID" are the same. Note query B has more data than query A. I want to pull in data from both queries if query A "ID" is found/matched in query B. I tried the below but I keep getting syntax error. I tried using query wizard and join "ID" field but access hangs and crashes or only shows me data from one of the queries
Select * FROM [Query A] INTERSECT [Query B]
Where[Query A].[ID] =[Query By].[ID];
Not sure what I am doing wrong, but if you can help guide me to right solution that would be greatly appreciated.
Thank you in advance for your help.