Question

to everyone I am little bit of struggling with MySQL query i need to get list of Saturdays list for the past 5 years and i am confused so please help me!!

No correct solution

OTHER TIPS

You can use WEEKDAY() function.

Returns the weekday index for date (0 = Monday, 1 = Tuesday, … 6 = Sunday). 

This query will return all Saturday in your datetable date column = MySQL datetime

SELECT * FROM `datetable` WHERE  WEEKDAY(`dates`) = 5
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top