QuestionQ89

VerifiedUsing Single-Row and Aggregate Functions

Review the description of the CUSTOMERS table:

Question Image

You need to determine whether any customer details were entered more than once under different CUSTINO values, by listing all duplicate names.

Which two methods can be used to obtain the required result?

Choose two
Explanation

A subquery can group rows by CUSTNAME and select names whose count exceeds one. A self join can match two CUSTOMERS rows with the same CUSTNAME but different CUSTINO values. Both approaches identify names entered under more than one customer number.

Community Discussion

No comments yet. Be the first to start the discussion!