NOT IN or IN?
I have been having a hard time believing my eyes when I noticed that these queries give different results:
1. select...
2011-09-27
789 reads
I have been having a hard time believing my eyes when I noticed that these queries give different results:
1. select...
2011-09-27
789 reads
Since it is late September, I thought it would be a good time to release an updated set of Diagnostic...
2011-09-27
1,251 reads
In just a few short days, it will be time for SQL Saturday #98 in Iowa City. If you’ve got...
2011-09-27
720 reads
Yesterday, I set up the premise for using named pipes in SSIS. Today we are going to get into the...
2011-09-27
715 reads
If you have a parent package that is looping through a set of files and calling child packages and want...
2011-09-27
2,756 reads
When I get in to work in the morning, I like a good cup of coffee waiting for me, a...
2011-09-27
1,219 reads
The server principal is not able to access the database under the current security context, is the error message appears...
2011-09-27
408 reads
In my continuing quest to not get personal visits from Buck Woody (blog|twitter) I’m making sure that I make good...
2011-09-26
1,492 reads
For some time now, I have been working on a new book called How to Perform a SQL Server Health...
2011-09-26
958 reads
I’m writing this on Sunday afternoon after the event, thinking about the event and what I want to share with...
2011-09-26
641 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 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...
Comments posted to this topic are about the item Finding the Black Friday Sales...
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