Tip: COLLATE for “Cannot resolve collation conflict” error
Some data professionals are VERY well versed with collation, and some never ever have to touch the concept. That second...
2014-03-17
575 reads
Some data professionals are VERY well versed with collation, and some never ever have to touch the concept. That second...
2014-03-17
575 reads
I read a terribly excited blog this morning by a guy who had just discovered Alt-F1 in SSMS. (If you don’t...
2014-03-14
644 reads
Fellow DBA: There are so many alerts! It takes me a long time to get through them all. How do...
2014-03-10
680 reads
I work in a lot of different offices and conference venues, in addition to my home office. At home, I need a...
2014-03-03
882 reads
SQL Server is a software product, right? And software has a history of having bugs, getting updates, and having support...
2014-02-24
591 reads
Ever since I worked in an office with adjustable standing desks, I’ve been thinking about getting a standing desk for...
2014-02-17
495 reads
We have here an easy, handy-dandy way to find out how much CPU is in use on your server. Of...
2014-02-10
566 reads
It’s been a long time since I’ve been a true newbie to a technology. There are plenty of things I...
2014-02-03
596 reads
Today let’s play around with the LIKE operator. Like, totally. Like, Introduction Like “determines whether a specific character string matches...
2014-01-27
750 reads
It’s awfully comforting to see all those backup and maintenance jobs in your SQL Agent list, isn’t it? It’d be...
2014-01-22
542 reads
By Steve Jones
A bit of a photo dump, but a few fun memories for me from...
By ReviewMyDB
Part 2 of my What's New in SQL Server for the Developer series. STRING_SPLIT,...
Note: This is more of a note to myself than an attempt to preach...
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