I need to fetch data from two tables
For example: I have tables test1, test2. Test1 is the parent table. I need to fetch data is that present in test1 but not in test2. How can I write a query for that?
select id from test1, test2 where test1.id not in (test2.id);