I have a database table..i want to write a stored procedure to SELECT the table..
the condition is.. i need to select only any one of the rows if two rows have a same column value..
i.e if there is a student table with columns id,name,subject
and the table has 2 rows with same studentname..i need only any one row while selecting complete row
how to do??

Nitin SontakkeRank #264 · 9.6K reputationPosted Jan 3, 2017, 9:29 PM EST
Suvendu Shekhar GiriRank #546 · 4.4K reputationPosted Jan 3, 2017, 9:54 PM EST
Chetan RanpariyaRank #1,852 · 801 reputationPosted Jan 4, 2017, 1:09 AM EST