Professional Documents
Culture Documents
Duplicate Rows
Duplicate Rows
, columnN, COUNT(*)
FROM your_table
GROUP BY column1, column2, ..., columnN
HAVING COUNT(*) > 1;
==================
SELECT employee_name, department, COUNT(*)
FROM employees
GROUP BY employee_name, department
HAVING COUNT(*) > 1;
====================
SELECT *
FROM your_table
WHERE (INTEGRATION_ID,Datasource_num_id) IN (
Select INTEGRATION_ID,Datasource_num_id ,count(*)
FROM W_PURCH_RCPT_FS
GROUP BY INTEGRATION_ID, Datasource_num_id
Having count(*)>1
);
I've been contemplating reaching out to you for the past couple of months, but I
haven't found the right time to connect.