SQL-Quiz-7
SQL Quiz 7
1. In EMP table, print update sentence whose employees with a job of ‘SALESMAN’ to 400.
1 | UPDATE EMP_BAK_TABLE |
2. In EMP table, print update sentence that adds a year as employees whose salary higher than their average salary
1 | UPDATE EMP_BAK_TABLE |
3. In EMP table, print update sentence that adds 100 in COMM column and multiply 2 times for employee whose job of ‘CLERK’ and multiply 3 times for employee whose job of ‘MANAGER’ and multiply 4 times for employee whose have another job.
1 | UPDATE EMP_BAK_TABLE |
4. In EMP table, print delete sentence that employee whose name start with ‘M’.
1 | DELETE FROM EMP_BAK_TABLE |
5. In EMP table, print delete sentence that employee whose salary higher than another average salary.
1 | DELETE FROM EMP_BAK_TABLE |