SQL assignment
SQL assignment
-- 20. Insert values in the result column if marks > 60, else
NULL
UPDATE student SET result = 'Passed' WHERE marks > 60;
UPDATE student SET result = NULL WHERE marks <= 60;
-- 21. List all info where the result is NULL and update as 'Not
Promoted'
SELECT * FROM student WHERE result IS NULL;
UPDATE student SET result = 'Not Promoted' WHERE result IS
NULL;