1

I have the following table setup in an oracle database:

Column Pk_foo1
Column Pk_foo2
Column Pk_foo3

How do I select the rows that are not unique if it were the case that Pk_foo1 and Pk_foo2 were the only primary keys.

An example of a select query would be appreciated. Thanks!

1 Answer 1

4
SELECT Pk_foo1, Pk_foo2
FROM Table
GROUP BY Pk_foo1, Pk_foo2
HAVING COUNT(*) > 1
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.