How would you retrieve common records from two tables ?
Loading
How would you retrieve common records from two tables ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Onkar SharmaPosted Dec 8, 2022, 7:07 PM
Hi,
To learn about how to find common records from two tables, visit:
Thanks!
Jignesh KumarPosted Nov 10, 2022, 10:45 AM
Hi Naresh,
You can use Intersect or Inner Join to get common records from two tables.
Uday DodiyaPosted Nov 10, 2022, 7:20 AM
Hi Naresh,
Use Intersect Key word, which gives you common records.
If you want in the output both column1 and column2 from table1 which has common columns1 in both tables.
Rajanikant HawaldarPosted Nov 10, 2022, 5:54 AM
https://www.c-sharpcorner.com/blogs/fetch-only-common-records-from-two-tables
Pankajkumar PatelPosted Nov 10, 2022, 5:42 AM
Hi Naresh Beniwal,
INTERSECT can be used in MS SQL to retrieve common records from two tables as like following:
For more details:
Hope, this will help you!