Condition (SQL): Difference between revisions

Content deleted Content added
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Examples: better 2nd example
Line 39:
<syntaxhighlight lang="sql">SELECT * FROM tab WHERE pk = 100</syntaxhighlight>
 
To identify whether a table ''tab'' has rows of data with a duplicated key column ''dk'' set to 100 &mdash; use the condition ''dk = 100'' and the condition ''having count(*) > 1'':
<syntaxhighlight lang="sql">SELECT *dk FROM tab WHEREGROUP dkBY = 100dk HAVING count(*) > 1</syntaxhighlight>
 
{{SQL}}