In my database, I have 3 tables that have 2 similar columns, Year and Month. These tables aren't linked by anything.
What i want to do is select the distinct year and months from these tables. So where table 1 contains:
2009 MAY (multiple times) 2008 NOVEMBER (multiple times) 2007 MAY (multiple times)
and table 2 and 3 contains:
2009 NOVEMBER (multiple times) 2009 MAY (multiple times) 2008 NOVEMBER (multiple times) 2008 MAY (multiple times)
I want to be able to do a select where it brings back a complete list of years and months from 2009 November to 2007 MAY.
I am struggling to work out the query.
Cheers