CPA · Question 20 · Area I: Information Systems
Which of the following SQL statements would be most useful for an auditor attempting to identify duplicate invoice numbers in a table named 'Invoices'?
Answer options:
SELECT DISTINCT InvoiceNum FROM Invoices
SELECT * FROM Invoices ORDER BY InvoiceNum
SELECT InvoiceNum, COUNT() FROM Invoices GROUP BY InvoiceNum HAVING COUNT() > 1
SELECT InvoiceNum FROM Invoices WHERE InvoiceNum IS NOT NULL
82 questions · hints · full answers · grading