Content deleted Content added
No edit summary |
m elaboration of examples |
||
Line 6:
SELECT * FROM tab WHERE ''pk = 100''
To '''<tt>SELECT</tt>''' the duplicate rows of data from a table ''tab'' with duplicate key column ''dk'' set to 100 — use the condition ''dk = 100'' and the condition ''having count(*) > 1'':
SELECT * FROM tab WHERE ''dk = 100'' having count(*) > 1
[[Category:SQL]]
|