Skip to main content
Admissions guidance, study banks, and career tools โ€” get started on Shalyam

Update Using a Join

Increase the salary of every employee in the 'Engineering' department by 10%.

Table schema

Employees(id INT PRIMARY KEY, name VARCHAR(50), department_id INT, salary INT)
Departments(id INT PRIMARY KEY, name VARCHAR(50))

Sample data

Employees:
id | name | department_id | salary
1 | A | 1 | 1000
2 | B | 2 | 1000

Departments:
id | name
1 | Engineering
2 | HR

Discussion

No discussions yet.

Rewards ยท v2.1

Join Shalyam Newsletter

Get exclusive insights with every issue: education, research and innovation news.

One email a week. Unsubscribe any time.