Multi-Row Variable Assignment and ORDER BYCommented on: 7 years ago
(February 4, 2010)
These lists are often for a child table, where the covering index is likely to be on the foreign key from the parent table, plus the key for the child entity. But it's good to know that these bloody-...
T-SQL Challenge – Efficient Partitioned TOPCommented on: 7 years ago
(October 2, 2009)
With a smaller number of rows, the CTE solution seems more efficient than this time-proven GROUP BY syntax. Putting the two queries in a batch, the CTE takes up around 36%.
select t1.grp, t1.col1,...
Catch That Bug! Random Row per GroupCommented on: 10 years ago
(October 20, 2006)
In order for the subquery to pick a random entry, you need to drop the ORDER BY clause, rather than using one.
Not sure why not all EmployeeId-s are returned, but this behaviour may already...
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.
Many organizations today cannot use public cloud solutions because of security concerns, administrative challenges and functional limitations. However, they still need a centralized platform where end users can conduct self-service analytics in an IT-enabled environment....More
It is crucial to move away from data and analytics stored on individual desktop computers. Today’s solutions must promote holistic, collective intelligence. The strong, continued alliance between Microsoft and Pyramid Analytics helps make all this possible....More
To become a truly data-driven enterprise, many business leaders recognize that they must extend the capabilities of self-service business intelligence (BI) and analytics to more of their business users. Many BI tools tackle part of this need, but they don’t offer a complete enterprise solution....More