|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Select duplicate records only
How do i go about selecting duplicate records, that have the same id's? I think it will be a modified version of hte following:
Code:
SELECT DISTINCT column1 FROM table this selects all distinctly different rows, so whats the opposite to this?
__________________
regards, Fulton |
|
#2
|
|||
|
|||
|
Quote:
Code:
SELECT DISTINCT column1 from table group by column1 HAVING count(column1) > 1 This groups your id's and only shows the id's that have more than 1 occurence in your table. Hope this helps! Angela |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Select duplicate records only |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|