This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| * | |
| FROM | |
| orders | |
| JOIN | |
| order_allocations | |
| ON orders.id = order_allocations.order_id | |
| WHERE | |
| orders.completed_at > date(now()) | |
| AND order_allocations.client_id = 'A' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| id | |
| FROM | |
| orders | |
| WHERE | |
| completed_at BETWEEN date_sub(date(now()), INTERVAL 1 day) AND date(now()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| * | |
| FROM | |
| orders | |
| JOIN | |
| order_allocations | |
| ON orders.id = order_allocations.order_id | |
| WHERE | |
| order_allocations.client_id = 'A' | |
| AND order_allocations.completed_at > date(now()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| * | |
| FROM | |
| orders | |
| JOIN | |
| order_allocations | |
| ON orders.id = order_allocations.order_id | |
| WHERE | |
| order_allocations.client_id = 'A' | |
| AND orders.completed_at > date(now()) |