Take Advantage of SQL Server 2012's Window FunctionalityCommented on: 1 year ago
(October 6, 2012)
it is confusing when you use partition by clause with group by.
SELECT prd_type_id, month, SUM(amount) AS SUM_Amount,
RANK() OVER (PARTITION BY month ORDER BY SUM(amount) DESC)
What's a good use for a UNIQUE filtered index?Commented on: 2 years ago
(November 18, 2011)
With the presence of unique filtered index, if my query criteriion is something like "where ssn is null". Why sql server could not take advantage of the unique filtered index by except the...
Power Pivot and other self-service BI tools are not a replacement for a data mart or data warehouse. When used correctly for Personal BI, Team BI, prototypes or proofs-of-concept, you can achieve truly agile, rapid reporting success with Excel Power Pivot....More
Recently, I've been working with a consulting client to help them tame CPU usage. Typically, they're clocking over 20,000 queries and operations per second on their e-commerce SQL Server, but ran into an issue where CPU started spiking up above 90 percent for sustained periods of time....More