Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Select distinct top 3 from table

$
0
0

in my sql table named staff there is a field named PL. sampl data is as under

PL

KM

KT

KM

HG

TG

HG

i tried select distinct top 1 PL from staff

i got top 1 

i want top 1

then top 2 one

then top 3 one then top 4 one 

all separate quries


I am a System Administrator at Vadodara


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>