I want to fetch duplicate records from a table (n-1 records out of n records). How should such a query look?
example (table name = markslist
):
Name Marks
Janny 9
raj 10
raj 10
raj 10
rose 8
If the table structure is like this, I want to fetch raj
for two times (n-1) out of 3 (n) times.
I tried using rank, but couldn't get the result I wanted.