Here you go
I have two tables that I need to merge, however there is a catch, on table "B" , not all depts have data in grades from 3-8, if data is missing I would like to have an empthy row with the grade and dept. Please see below
Table "A" has a field column named grade:
SELECT A.grade
FROM A
GROUP BY grade
HAVING (((A.grade) In (3,4,5,5,6,7,8)));
Table "B"
SELECT .yr, .grade, .dept
FROM
GROUP BY .yr, .grade, .dept
HAVING (((.yr)=2012))
ORDER BY .Dept;
OUTPUT
yr grade dept
2012 6 2030
2012 7 2030
2012 8 2030
Desired final ouput
yr grade dept
2012 3 2030
2012 4 2030
2012 5 2030
2012 6 2030
2012 7 2030
2012 8 2030
Is this possible?
Please advise
Dennis