The Idea:
I have two tables: a table of dates (CALENDAR) and a table of locations (6 locations total). I would like to do a select statement that joins the two tables together such that I a get 6 rows per date, where each date row is duplicated for each location. For example, if I’m selecting August 21, 22, and 23 from CALENDAR for the locations ‘New York’, ‘Spain’, and ‘Michigan’, I want the returned rows to look like:
August 21 - New York
August 21 - Spain
August 21 - Michigan
August 22 - New York
August 22 - Spain
August 22 - Michigan
August 23 - New York
August 23 - Spain
August 23 - Michigan
The Problem: I only have limited SQL experience so I don’t know how to do this kind of join. Can anyone provide a code sample which would replicate the same behavior?
It’s not a join at all – there’s no relation between the two tables. So…