Reputation: 13620
How can I limit my SQL to contain data only for this week? (monday to sunday)
Thought of:
SELECT * FROM log WHERE timestamp >= timestamp - INTERVAL 7 DAY && DAYOFWEEK(timestamp-INTERVAL 7 DAY) > 2
But something is not right...
Upvotes: 0
Views: 174