Skip to content
Advertisement

Timecard report that shows hours worked every day, even when its zero

############################################

The above query produces this: query results

What I want is for the work_date column to show every date in the month. If someone doesn’t work then WO#, act_hours, phase#, and trans_no would all be null but the work_date field, shop, and employee # would still be filled in.

I have a view (aim_dim_date) that has every day in the calendar in it. I’m just trying to figure out how to utilize it to show when people work and when they haven’t worked.

Please help!

Thanks!

Advertisement

Answer

You should remove the where condition for wkae table, since it filters out the null records, and place the condition on the date in the left join clause instead.

You can try something like this. First cross join ae_l_shp_d with your calendar view and then left join wkae on date column also.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement