I have a table with card numbers and names. Some of those names are the same, meaning they have multiple cards. How can I select all the rows where the name occurs more than once?
Following may be the solution you are looking for
Select * from CardTable where cardid in ( select cardid from CardTable group by cardid having count(cardid) > 1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With