driveflexfuel
New Member
- Messages
- 159
- Reaction score
- 0
- Points
- 0
I have been trying to figure out how to select the following from my database.
Select information between beginning of this week and now()
"SELECT * FROM database WHERE ____ "
Is this correct for selecting all content from the beginning of the month to now
SELECT * FROM database WHERE DATEDIFF(NOW(), date) > 0 AND DATEDIFF(NOW(),DATE_FORMAT(NOW(), '%Y-%m-01')<0) LIMIT 1
Any help is greatly appreciated
Select information between beginning of this week and now()
"SELECT * FROM database WHERE ____ "
Is this correct for selecting all content from the beginning of the month to now
SELECT * FROM database WHERE DATEDIFF(NOW(), date) > 0 AND DATEDIFF(NOW(),DATE_FORMAT(NOW(), '%Y-%m-01')<0) LIMIT 1
Any help is greatly appreciated