0

I have a query

SELECT `total_user`, `created_date` 
FROM `logs` 
WHERE `logs`.`created_date` BETWEEN '2020-01-13' AND '2020-11-13'

which is working fine. but in my records few dates doesn't exist. Is there any way to show all dates from '2020-01-13' to '2020-11-13' even no date exist

juergen d
  • 201,996
  • 37
  • 293
  • 362

1 Answers1

-1

Use the technique here (generate days from date range) to create a date range as a sub query the left join with logs table.

Tarik
  • 10,810
  • 2
  • 26
  • 40