MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 124


Refer to the exhibit. How should the WHERE clause be changed to set the city and state values from the configured input parameters?

Show Answer
Correct Answer: A

To set the city and state values from the configured input parameters in SQL, the appropriate syntax is to use bind variables. This can be done using the colon (:) followed by the parameter name. Therefore, the correct WHERE clause change is: WHERE city = :city AND state = :state.

Discussion

3 comments
Sign in to comment
RanjansinghOption: A
Feb 8, 2023

A - correct

ExamDevOption: A
Jan 23, 2024

A - correct

AlandtOption: A
Feb 8, 2024

ChatGPT: Therefore, the correct way to change the WHERE clause to use the configured input parameters would be: A. WHERE city = :city AND state = :state