T-SQL Challenge - Hierarchical Aggregates and SortingCommented on: 7 years ago
(June 13, 2007)
select datepart(yyyy,orderdate) Orderyear,datepart(mm,orderdate) Ordermonth,
datepart(dd,orderdate) Orderday,orderid, sum(freight) Freight
group by datepart(yyyy,orderdate),datepart(mm...
Digital Magazine Archives
Browse back issues of SQL Server Pro, from January 2007 through the last issue published in April 2014. Find the back issues here.
In managing a database or sometimes numerous databases, we often get caught up in the day-to-day maintenance and lose sight of the other principles we know are critical to ensuring optimal performance. Here’s a quick refresher....More