Upcoming Content Preview
It has been a few weeks since I last posted. I know, I’m a slacker, thanks for pointing that out. ...
2011-07-10
397 reads
It has been a few weeks since I last posted. I know, I’m a slacker, thanks for pointing that out. ...
2011-07-10
397 reads
I saw an article in the newspaper titled How to Visit 30 Ballparks in 35 Days This Summer. I think...
2011-07-08
674 reads
Today, I needed a way of searching through a database, any database, looking for a certain string. The procedure I...
2011-07-08
3,866 reads
My children never cease to delight me in all kinds of ways, but never more when they come up with some...
2011-07-08
523 reads
If you are new to Business Intelligence (BI) and learn best by watching videos and “playing”, then this course is...
2011-07-08
5,228 reads
On my current project, I am dealing with date intervals in T-SQL very heavily. I’ve hit interesting issue recently – how...
2011-07-08
2,188 reads
I have been a judge for the Exceptional DBA of the Year Awards ever since its inception, and one of...
2011-07-08
1,190 reads
This post is password protected. To view it please enter your password below:
Password:
2011-07-08
597 reads
As I mentioned in the introductory post, I’m summarizing posts from previous years in the the past week. Some posts...
2011-07-08
471 reads
I’ve received interesting question/requirement few days ago:
“… When viewing a query plan graphically, we usually have to hunt for the...
2011-07-08
1,684 reads
By Steve Jones
I’ve become an EV guy. I was talking with a friend who was selling...
In a previous post I talked about how we can use T-SQL Snapshot Backups...
By Steve Jones
A bit of a photo dump, but a few fun memories for me from...
Comments posted to this topic are about the item How to connect your SQL...
Comments posted to this topic are about the item Finding the Black Friday Sales...
Earlier this week I had an issue with a Win 8.1 laptop I was...
We are tracking sales for Black Friday today. We have these aggregate values:
CREATE TABLE dbo.BlackFridaySales
(
Product NVARCHAR(50) NOT NULL PRIMARY KEY,
Units INT NOT NULL
);
INSERT INTO dbo.BlackFridaySales (Product, Units)
VALUES (N'55" TV', 900),
(N'Air Fryer', 500),
(N'Noise-Cancel Headphones', 500),
(N'Robot Vacuum', 300);
I'm trying to get a ranking of the sales that would return 1, 2, 2, 3 for the product levels. Which query does this? See possible answers