Top 3 Max entries for a Combination which a condition
Posted
by
Asharmb
on Stack Overflow
See other posts from Stack Overflow
or by Asharmb
Published on 2012-09-02T09:35:20Z
Indexed on
2012/09/02
9:37 UTC
Read the original article
Hit count: 235
sql
I am new to sql side. so if this questoin sound very easy then please spare me. I have a 4 coloumns in a sql table.Let say A,B,C,D . For any BC combination I may get any number of rows. I need to get at max 3 rows (which inturn give me 3 unique value of A for that BC ombination) for these selected rows i should have Top 3 Max value of D. As compare to other entries for that BC combination.
So there can be any number of BC combination so the above logic should imply to all of them.
© Stack Overflow or respective owner