L2 Q1 Intermediate Level
Practice Question

Level 2 - Question 1: Inner Join Employees and Departments

Scenario

You have two tables: employees and departments. You want to get the employee name along with their department name.

Task

Write a SQL query that returns employee_name and department_name by joining the two tables on department_id.

Sample Schema

employees columns
emp_idINTEGER
employee_nameVARCHAR2(100)
department_idINTEGER
departments columns
department_idINTEGER
department_nameVARCHAR2(100)

Write Your SQL Answer: