Skip to content
Advertisement

SQL. full range of dates for every user

Please see code below. For every Underwriter that exists that is in a given month, I need every single date in the month and the given Underwriter. Thank you so much Original Table: Desired Output: Please note that Rebecca should not have dates for 12/1/2019 to 12/31/2019 Attempted Code Answer Use a Tally, they are really fast at such operations:

Show specific rows in SQL by not existing in another table

I’m not very experienced in advanced SQL and stackoverflow, so I’m trying my best to explain what I need. Let’s say I have a table called ‘Shift’ and a table called ‘Schedule’. ‘Shift’ has columns ‘shift_id, shift_start, shift_end, shift_day, shift_function_id’. shift_start represents a start time. shift_end represents a end time. shift_day represents the number of the day in a week

Advertisement