Link to home
Start Free TrialLog in
Avatar of route217
route217Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Amend and Clause to only show today's Data

Hi Experts

How would you amend the following And clause so we have only todays sales; So assume Monday 17.05.21 Sales Starts at 00:00:00 and end 23:59.59 - likewise1 second later we start to capture Tuesday's sales and so on

Current SQL AND Statement
And `sales_flat_order`.`created_at` >= date_add(CURDATE(),interval -DAY(CURDATE())+1 DAY)


ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of route217

ASKER

yes MY SQL Sorry