⚡️ Pass with Confidence Sale - 40% off ALL packages! ⚡️

1 day, 14 hours remaining!

CompTIA Data+ DA0-002 (V2) Practice Question

An SSRS report backs an executive dashboard and should let users select multiple product categories at once. When the "Select All" option is chosen, the report still returns data for only one category. You examine the T-SQL stored procedure that feeds the dataset and notice this predicate:

WHERE ProductCategoryID = @CategoryList;

The @CategoryList parameter receives a comma-separated list of the category IDs chosen in the report filter. During the code review step of troubleshooting, which change will MOST likely fix the filter so the report returns data for every selected category?

  • Rename the stored procedure to comply with the team's naming convention.

  • Create a non-clustered index on the ProductCategoryID column referenced in the filter.

  • Rewrite the predicate so it uses an IN clause that accepts all values in @CategoryList instead of the = operator.

  • Add SET NOCOUNT ON; at the top of the stored procedure to suppress row-count messages.

CompTIA Data+ DA0-002 (V2)
Visualization and Reporting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot