Which of the following is used to insert a tuple from another relation?
INSERT INTO course (course id, title, dept name, credits)
VALUES (’CS-437’, ’DATABASE Systems’, ’Comp. Sci.’, 4);
INSERT INTO instructor
SELECT ID, name, dept name, 18000
FROM student
WHERE dept name = ’Music’ AND tot cred > 144;
INSERT INTO course VALUES (’CS-437’, ’DATABASE Systems’, ’Comp. Sci.’, 4);
Not possible
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
_________ are useful in SQL update statements, where they can be used in the set clause.
Solution |
2
Discuss
|
Which of the following is the correct format for case statements.
Solution |
3
Discuss
|
Fill in with correct keyword to update the instructor relation.
Solution |
4
Discuss
|
The problem of ordering the update in multiple updates is avoided using
Solution |
5
Discuss
|
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.
Solution |
6
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 |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved