I have two tables. They both have a field - memberid. There are two types of members. For explanation purposes, I"ll use Premium Members and NON Prem. Members. Table1 contains ALL members and table 2 contains only premium members.
I need a query that gets only records (from the table with ALL members) that are found in table2 and also a query that gets only records (from the table with all members) that are NOT found in table2. I'm having some trouble getting it right.
This is what I have right now and I'm pretty sure it's not working correctly.
select memberid, tdate from nonprmshare right join prmshare on nonprmshare.memberid = prmshare.memberid
where nonprmshare.memberid != prmshare.memberid
Any help is appreciated...
Thanks
I need a query that gets only records (from the table with ALL members) that are found in table2 and also a query that gets only records (from the table with all members) that are NOT found in table2. I'm having some trouble getting it right.
This is what I have right now and I'm pretty sure it's not working correctly.
select memberid, tdate from nonprmshare right join prmshare on nonprmshare.memberid = prmshare.memberid
where nonprmshare.memberid != prmshare.memberid
Any help is appreciated...
Thanks