nerdexam
CIW

1D0-541 · Question #122

Consider the relations shown in the exhibit. Due to restructuring, the sales department has been eliminated and the employees working in that department have been dismissed. All ID information is…

The correct answer is C. SELECT *. See the full explanation below for the reasoning.

Question

Consider the relations shown in the exhibit. Due to restructuring, the sales department has been eliminated and the employees working in that department have been dismissed. All ID information is stored as integers. Which SQL statement would be used to return a relation with all information for the employees who have been dismissed?

Exhibit

1D0-541 question #122 exhibit

Options

  • ASELECT *
  • BSELECT ID, Last_Name
  • CSELECT *
  • DSELECT *

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    15% (4)
  • C
    73% (19)
  • D
    4% (1)

Community Discussion

4
Viktor S.Viktor S.Jun 7, 2026

The answer is C, and the reason it beats A and D despite all three using SELECT * comes down to how you handle integer IDs in the WHERE clause or subquery. The question tells you IDs are stored as integers, so any option wrapping that value in single quotes is immediately wrong because comparing an integer column to a string literal is either an implicit type coercion mess or a flat-out mismatch depending on the DBMS. Option B eliminates itself by only returning two columns when the question explicitly asks for all information about those employees, so that one should take you about two seconds to rule out. C gets the data type right and selects every column, which is exactly what "all information" means. Stop memorizing which letter is correct and start reading what the question actually requires, because the job will ask the same questions without a multiple choice lifeline.

16
Mei-Ling H.Mei-Ling H.Jun 26, 2026

I picked A first, but C has the correct subquery for matching integer IDs.

5
Ola B.Ola B.Jun 16, 2026

Option A looks right until you realize you need the subquery filtering on department, so C it is.

2
Viktor S.Viktor S.Jun 19, 2026

The subquery logic is right but make sure you understand why A fails first, otherwise you will just memorize C and blank on the next variation that changes the filtering condition.

0
Full 1D0-541 Practice