If I select from a table group by the month, day, year, it only returns rows with records and leaves out combinations without any records, making it appear at a glance that every day or month has activity, you have to look at the date column actively for gaps. How can I get a row for every day/month/year, even when no data is present, in T-SQL?
Share
My developer got back to me with this code, underscores converted to dashes because StackOverflow was mangling underscores — no numbers table required. Our example is complicated a bit by a join to another table, but maybe the code example will help someone someday.