Join a List of Values
There are multiple ways of retrieving data from a table when you have a list of values. This article explores the use of the table value constructor.
Related Posts:
Finding Data...
2019-07-02
40 reads
There are multiple ways of retrieving data from a table when you have a list of values. This article explores the use of the table value constructor.
Related Posts:
Finding Data...
2019-07-02
40 reads
Welcome to a brand new series that I have started with with Erin Ostrowsky [Blog | Twitter] that will focus on interviewing for a Power
2019-07-02 (first published: 2019-06-20)
677 reads
2019-07-02
13 reads
Ever since Microsoft said SQL would run on Linux, I was excited. Finally, all the Linux administrators I had worked with could be quiet and the Oracle DBAs that...
2019-07-02
18 reads
2019-07-02
9 reads
In case you can’t tell from some of my blog posts, I’m a bit of an advocate for DevOps. I’m extremely fortunate in my employer, Redgate Software, that they...
2019-07-01
141 reads
Today is the renewal date for Microsoft MVPs. I received an email a short while ago informing me that I was being awarded again for the July 2019 –...
2019-07-01
35 reads
I am humbled to be among so many great professionals and honored at the same time for having been chosen.
Related Posts:
Data Platform MVP 2020 August 12, 2020
How to...
2019-07-01
21 reads
I am humbled to be among so many great professionals and honored at the same time for having been chosen.
Related Posts:
How to be an MVP Book November 28, 2018...
2019-07-01
38 reads
If you are being serious in your role, then the amount of times you grant permissions to the public role should either be a) never, b) when you want...
2019-07-01 (first published: 2019-06-17)
364 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...
WhatsApp:0817781222 AEON Mall Level B1 Unit No. B1-03, 03A, 05, Jl. MH. Thamrin, Sentul...
WhatsApp:0817781222 Jl. Raya Pajajaran No.5 & 6, RT.08/RW.09, Bantarjati, Kec. Bogor Utara, Kota Bogor,...
Comments posted to this topic are about the item How to connect your SQL...
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