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

Add a Column and Backfill It

Add a grade column (CHAR(1)) to Employees and fill it: 'A' for salary >= 70000, 'B' for salary >= 50000, otherwise 'C'.

Table schema

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

Sample data

id | name | salary
1 | Alice | 80000
2 | Bob | 55000
3 | Carol | 30000

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.