It sounds like you want to get a name regardless of whether the person is a member or just a visitor. So, you need to get all "Grouping" records and any matching "Member" records. This requires an OUTER JOIN. The LEFT OUTER JOIN ("OUTER" is optional) gets all...
You definitely should keep the 3 tables you have and not reduce them to 2 tables.
You can get all the data you need by using either of the queries below. They both do the same thing; just different ways of going about it.
SELECT a.artistname, d.cost, d.disctitle, d.releasedate, s.songtitle...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.