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

Advertisement

Answer

Use a Tally, they are really fast at such operations:

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