Home Forums SQL Server 2008 SQL Server 2008 - General SHOW OFF DAY RE: SHOW OFF DAY
aaron.reese
SSChampion
Points: 13498
More actions
June 17, 2013 at 9:15 am
#1624646
The answer to the OP question is to use LEFT JOIN
SELECT Calendar.date, shiftQuery.* From Calendar LEFT JOIN shiftQuery on Calendar.date = shiftQuery.date
This will give you the calendar record EVERY TIME and the shift record IF IT EXISTS