Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. SELECT DISTINCT H.HolidayId,H.HolidayDate,H.Description,CH.ClientId,
  2. case when CH.HolidayId is not null then 1 else 0 end as IsHoliday
  3. FROM Holiday H LEFT JOIN ClientHolidays CH ON h.HolidayId = CH.HolidayId
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement