Automating Replication On Your Server
If you use replication, you have had the situation occur where you had to restore a replicated database. You’ve have doubtless been paged to restore a replicated database. You...
2019-07-31
102 reads
If you use replication, you have had the situation occur where you had to restore a replicated database. You’ve have doubtless been paged to restore a replicated database. You...
2019-07-31
102 reads
2019-07-22
29 reads
Before we approached our last major SQL Server upgrade, I was curious about what might break. Yes, I had used the DEA to check our code against deprecated or...
2019-07-19
64 reads
Why do I take pictures of screens at conferences? Let me count them up for you! Read on...
2019-07-05
120 reads
It's SQLIntersection time, and also time to meet a new member of the family. He's old enough for social media, though...
2019-06-07
28 reads
I was recently asked in a Service Broker class that I was teaching why we would use it. Good question! Read on....
2019-05-15 (first published: 2019-05-03)
1,346 reads
Dread the drop no more! Part 2 of the rename/drop process.
2019-05-06 (first published: 2019-04-22)
472 reads
Oh, the dreaded string search (on an entire instance). What to do?
2019-04-11
258 reads
Ever tried to drop a user/login, only to find that they owned a schema? Here's how I do it...
2019-04-08
209 reads
Let's be honest - some of our best learning experiences come from our mistakes. Here's one of mine....
2019-04-05
34 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...
Kontak CS 08218200233 Jl. S. Supriadi No.65, Sukun, Kec. Sukun, Kota Malang, Jawa Timur...
Cs Bca 08218200203 Jl. Galunggung No.65 11 dan 65/A1, Gading Kasri, Kec. Klojen, Kota...
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