Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT OrderDate AS 'Fecha Orden',
- SUM(TotalDue) AS 'Total por día'
- FROM Sales.SalesOrderHeader
- WHERE OrderDate >= '2005-07-01T00:00:00'
- AND OrderDate < '2005-08-01T00:00:00'
- GROUP BY OrderDate
- HAVING SUM(TotalDue) >= 15000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement