CPA · Question 40 · Area I: Information Systems
Which of the following SQL statements would an auditor use to identify duplicate invoice numbers in the 'Sales' table?
Answer options:
SELECT InvoiceNum FROM Sales WHERE InvoiceNum > 1
SELECT DISTINCT InvoiceNum FROM Sales
SELECT InvoiceNum, COUNT() FROM Sales GROUP BY InvoiceNum HAVING COUNT() > 1
SELECT * FROM Sales ORDER BY InvoiceNum
82 questions · hints · full answers · grading