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

1 day, 12 hours remaining!

CompTIA Data+ DA0-002 (V2) Practice Question

An HR analytics team is preparing a compensation report. The company database has two tables: Departments (dept_id, dept_name) and Employees (emp_id, dept_id, salary). The analyst must create a query that shows every department name together with the average salary of its employees, even when a department currently has no employees. Which SQL operation should be used to combine the tables before calculating AVG(salary) to satisfy this requirement?

  • Use an INNER JOIN between Employees and Departments and then GROUP BY dept_name.

  • Perform a LEFT OUTER JOIN of Departments to Employees and then GROUP BY dept_name.

  • Combine the tables with UNION ALL on dept_id and then GROUP BY dept_name.

  • Create a CROSS JOIN of Departments and Employees and filter on dept_id in a WHERE clause.

CompTIA Data+ DA0-002 (V2)
Data Acquisition and Preparation
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