Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Critical deletion query

$
0
0

 Suppose there is a table name as "Usersdetails"

ID                   Firstname                  Lastname

1                       Alex                             stewart

2                       Alex                             stewart

.                          .                                       .

.                          .                                       .

.                          .                                       .

120                   Alex                             stewart

suppose  Firstname +  Lastname = ' Alex stewart ' occurs 120 times in table

Now my question is I want that every users occurs only 65 times in table and I have to deleted remaining records...

How can I do that in a big table and in different kind of user name and occurrence of users may change??

please help...


Viewing all articles
Browse latest Browse all 12963

Trending Articles



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