Technical Article

Find Nth Max-Min Record - The Efficient Way!

It is quite often that we need to find Nth (5th or 8th or 10th) maximum or minimum number of record from the record set. The solution is different in MS SQL than in Oracle because we have RowNum in Oracle. Some time ago I got the same problem with a massive table of more […]

You rated this post out of 5. Change rating

2005-07-22 (first published: )

1,033 reads

Blogs

A New Word: Fitching

By

fitching – v. intr. compulsively turning away from works of art you find frustratingly,...

Copilot in Microsoft Fabric

By

Microsoft Copilot is an app that uses AI to help you find information, create content,...

Test Data Manager in Under 10 Minutes

By

Test Data Manager (TDM) is a suite of products from Redgate that make it...

Read the latest Blogs

Forums

TSQL Help, Possible a recursive CTE

By erics44

Hi I have 2 tables Table A JoiningID, MainID 1010619, 646703 991840, 238649 991840,...

Add custom toolbar to SSMS

By richardmgreen1

Hi all   I'm fairly certain I've done this before but can't figure it...

Add custom toolbar to SSMS

By richardmgreen1

Hi all   I'm fairly certain I've done this before but can't figure it...

Visit the forum

Question of the Day

What's Wrong with this Table?

What's wrong with this code and causes an error?

CREATE TABLE Customer
(
    CustomerID INT NULL,
    FirstName NVARCHAR(50) NOT NULL,
    LastName NVARCHAR(50) NULL,
    Email NVARCHAR(100) NOT NULL,
CONSTRAINT CustomerPK PRIMARY KEY (CustomerID, LastName)
);


See possible answers