I have two tables. One contains data with some dates, and second one consist all public holidays. My task is to determine let's say DayType for each record in the table.
For example if date is '2015-09-08 22:33' then output is "Sunday/Night Shift" or if date is '2015-06-08 12:20" then output is "Normal day".
I've used select case but i don't get good results.
Thake loot at my sample SQL Fiddle
Is there any other way for checking dates instead of using select case statement?