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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -