Scripts

Blogs

Memories of PASS Data Community Summit 2026

By

A bit of a photo dump, but a few fun memories for me from...

What's New in SQL Server for the Developer: SQL Server 2016

By

Part 2 of my What's New in SQL Server for the Developer series. STRING_SPLIT,...

The DBA Moves Up the Stack: From SQL Server on a VM to Azure SQL and Managed Instance

By

Note: This is more of a note to myself than an attempt to preach...

Read the latest Blogs

Forums

Layanan BCA KCP Dempo TELP//WA (0817-819-444)

By Halo_BCA

Hub/Wa. 0817-819-444 Jl. Lingkaran 1 Jl. Dempo Luar No.312 H, 15 Ilir, Kec. Ilir...

Cust BCA KCP Nusantara TELP//WA (0817-819-444)

By layanan 24jam BCA

Hub/Wa. 0817-819-444 Jl. Nusantara Raya No.15, Depok, Kec. Pancoran Mas, Kota Depok, DKI Jakarta...

How to connect your SQL Server 2025 semantic search for free

By Daniel Calbimonte

Comments posted to this topic are about the item How to connect your SQL...

Visit the forum

Question of the Day

Finding the Black Friday Sales Ranking

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