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

SQl Query Help.

$
0
0

dear friends,

     in my table data is like below.

     id     date                    roleno

     1      01-jan-2014         3

     1      02-feb-2014         3

     1      03-april_2014       3

     2      01-may-2014        3

     3      01-aug-2014        3

   I want remove minimum records from duplicate ID.

   Output should like below..only one record should be display because ID=1 is duplicate .

   it means only Minimum records at  below.

    ID    Date             Role No.

    1  01-Jan-2014      3

    1 02-feb-2014       3

  Regards,

Rajnish


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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