sql - How do I find duplicate values in a table in Oracle? -


what's simplest sql statement return duplicate values given column , count of occurrences in oracle database table?

for example: have jobs table column job_number. how can find out if have duplicate job_numbers, , how many times they're duplicated?

select column_name, count(column_name) table group column_name having count (column_name) > 1; 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -