DaveConvery


SQLServerCentral Editorial

Terrifyingly Accurate Technology Predictions for 2014

The end of a year is a time for reflection, but it’s also a time for running full-pelt at the new year with some ill-thought-out predictions under ones belt. It’s with this in mind that I fire up my 100%-accurate Criswell-Brand crystal ball, and peer into next year’s world of technology.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2013-12-23

191 reads

SQLServerCentral Article

The End of Privacy: Tragically Comical Edition

It’s hard to avoid privacy-based stories at the moment, with growing concern over government snooping and the limits of power. But where I’m based, in the UK, there’s a new, fully-privatised invasion of privacy. One marketing company has created an outdoor wi-fi basestation that grabs your phone’s MAC address as you pass, with the idea […]

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2013-08-19

110 reads

SQLServerCentral Editorial

Tuning People?

Database people are used to changing the hardware of the server on which a problem database resides, or making changes to indexes and database settings, but humans and their organisations are far more difficult to tune and optimise than databases.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(6)

You rated this post out of 5. Change rating

2012-06-11

318 reads

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

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...

Finding the Black Friday Sales Ranking

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Finding the Black Friday Sales...

I wonder about this interesting event - Windows keys

By skeleton567

Earlier this week I had an issue with a Win 8.1 laptop I was...

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