2019 Final Experiment Test - Solution
2019 Final Experiment Test - Solution
3. Find all employees whose salary is greater than 1400 and working branch is not
‘Downtown’
= SELECT * FROM `employee` WHERE `salary`>1400 AND `branch-
name`!='Downtown'
4. Calculate the average salary of all employees and show the average salary as
“avg_salary”
= SELECT AVG(`salary`) AS `avg_salary` FROM `employee`