Fragmentation in SQL Server
Fragmentation:- Fragmentation can be defined as condition where data is stored in a non continuous manner. In can be defined into...
2012-12-31
1,459 reads
Fragmentation:- Fragmentation can be defined as condition where data is stored in a non continuous manner. In can be defined into...
2012-12-31
1,459 reads
Log Shipping:- Log Shipping is a process of keeping the latest copy of the database of the primary database server...
2012-12-31
1,542 reads
Rebuild and Reorganization of Indexes:- SQL Server has the ability of maintaining the indexes whenever we makes changes (update, Insert,...
2012-12-31
2,765 reads
Replication is a way of distribution of database and their objects from one master database to one or more recipient databases...
2012-12-31
2,141 reads
HappyNewYear2013
May this new year bring lots of Happiness in all of your life. Let welcome 2013 together with lots of...
2012-12-31
1,300 reads
Wish you all a very happy and blessed festive season. May this festival of lights brings more brightness in your...
2012-11-13
699 reads
Boyce - Codd Normal Form (BCNF) :- A normal form is said to be a Boyce - Codd Normal Form if it is in...
2012-08-19
4,266 reads
Isolation levels :- Isolation level is required to isolate a resource and protect it from other transactions. This is achieved with...
2012-08-19
22,127 reads
Merge Command:- Merge command is a new feature introduced in the SQL Server 2008. It can perform Update, Insert and...
2012-04-17
1,763 reads
Many times we need to alter the table definition by adding , deleting or updating a column in the table. In...
2012-04-15
1,443 reads
By Steve Jones
A bit of a photo dump, but a few fun memories for me from...
By ReviewMyDB
Part 2 of my What's New in SQL Server for the Developer series. STRING_SPLIT,...
Note: This is more of a note to myself than an attempt to preach...
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...
Earlier this week I had an issue with a Win 8.1 laptop I was...
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