I have a table with all my sales from yesterday. In the field i have the date of the order stored in this format: 1286193719
I want to run a statement on the database to find all the sales from yesterday.
I thought this would work:
Expand|Select|Wrap|Line Numbers
- "SELECT fTotalPrice FROM te5_tbShop_Orders WHERE tmOrderDate = CURRENT_DATE() - INTERVAL 1 DAY"
Expand|Select|Wrap|Line Numbers
- "SELECT fTotalPrice FROM te5_tbShop_Orders WHERE date(tmOrderDate) = CURRENT_DATE() - INTERVAL 1 DAY"
Please can someone advise?
Cheers,
Adam