Skip to content

Tag: sql

SQL Group with time

Sample table id dept ctime 100 A 09:15:12.0000000 200 B 08:00:00.0000000 300 A 09:00:00.0000000 400 B 08:50:00.0000000 expect to see countid dept xtime 2 A …

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…