Which of the following relation updates all instructors with salary over $100,000 receive a 3 percent raise, whereas all others receive a 5 percent raise.
UPDATE instructor
SET salary = salary * 1.03
WHERE salary > 100000;
UPDATE instructor
SET salary = salary * 1.05
WHERE salary <= 100000;
UPDATE instructor
SET salary = salary * 1.05
WHERE salary < (SELECT avg (salary)
FROM instructor);
UPDATE instructor
SET salary = CASE
WHEN salary <= 100000 THEN salary * 1.03
ELSE salary * 1.05
END
None of the mentioned
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
Which of the following deletes all tuples in the instructor relation for those instructors associated with a department located in the Watson building which is in department relation.
Solution |
2
Discuss
|
The problem of ordering the update in multiple updates is avoided using
Solution |
3
Discuss
|
Which of the following is used to insert a tuple from another relation?
Solution |
4
Discuss
|
Which of the following is the correct format for case statements.
Solution |
5
Discuss
|
Fill in with correct keyword to update the instructor relation.
Solution |
6
Discuss
|
_________ are useful in SQL update statements, where they can be used in the set clause.
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved