Select dayname(current timestamp), count(*)
From Table1
That will get you the day of the week. Do you want to get the full date of Monday when it's Wednesday, Thursday, etc?
If so, you could do a case statement like this:
select case when day(current timestamp) = 3 then
Date(current timestamp - 1 days)
case when day(current timestamp) = 4 then
Date(current timestamp - 2 days)
ETC ,
Count(*)
From table1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.