For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeCPA®CPA ISC Practice Exam 4Question 20
    Hard1 markMultiple Choice
    Area I: Information SystemsSQLData AnalysisArea I

    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:

    A.

    SELECT DISTINCT InvoiceNum FROM Invoices

    B.

    SELECT * FROM Invoices ORDER BY InvoiceNum

    C.

    SELECT InvoiceNum, COUNT() FROM Invoices GROUP BY InvoiceNum HAVING COUNT() > 1

    D.

    SELECT InvoiceNum FROM Invoices WHERE InvoiceNum IS NOT NULL

    How to approach this question

    To find duplicates, you need to count occurrences of each item and look for counts > 1. This requires GROUP BY and HAVING.

    Full Answer

    C.SELECT InvoiceNum, COUNT(*) FROM Invoices GROUP BY InvoiceNum HAVING COUNT(*) > 1✓ Correct
    SELECT InvoiceNum, COUNT(*) FROM Invoices GROUP BY InvoiceNum HAVING COUNT(*) > 1
    The GROUP BY clause groups rows with the same values, and HAVING COUNT(*) > 1 filters those groups to show only the ones that appear multiple times (duplicates).

    Common mistakes

    Using DISTINCT (which removes duplicates) instead of finding them.
    Question 19All questionsQuestion 21

    Practice the full CPA ISC Practice Exam 4

    82 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01A CPA is advising a client who is migrating their legacy on-premise ERP system to a cloud environ...HardQ02An auditor is reviewing the Service Level Agreement (SLA) for a client using a public cloud provi...HardQ03A company uses an Infrastructure as a Service (IaaS) model. During an IT audit, the auditor disco...HardQ04An organization is implementing the COSO Enterprise Risk Management (ERM) framework to govern its...HardQ05During a walkthrough of an order-to-cash process, the auditor observes that the sales manager can...Hard
    View all 82 questions →