Condition (SQL): Difference between revisions

Content deleted Content added
Wwmbes (talk | contribs)
No edit summary
Wwmbes (talk | contribs)
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 &mdash; use the condition ''dk = 100'' and the condition ''having count(*) > 1'':
 
SELECT * FROM tab WHERE ''dk = 100'' having count(*) > 1
 
[[Category:SQL]]