Consider the two relations instructor and department
Instructor:
ID | Name | Dept_name | Salary |
1001 | Ted | Finance | 10000 |
1002 | Bob | Music | 20000 |
1003 | Ron | Physics | 50000 |
Department:
Dept_name | Building | Budget |
Biology | Watson | 40000 |
Chemistry | Painter | 30000 |
Music | Taylor | 50000 |
Which of the following is used to create view for these relations together?
CREATE VIEW instructor_info AS
SELECT ID, name, building
FROM instructor, department
WHERE instructor.dept name= department.dept name;
CREATE VIEW instructor_info
SELECT ID, name, building
FROM instructor, department;
CREATE VIEW instructor_info AS
SELECT ID, name, building
FROM instructor;
CREATE VIEW instructor_info AS
SELECT ID, name, building
FROM department;
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
Find the error in this query.
Solution |
2
Discuss
|
Here the tuples are selected from the view.Which one denotes the view.
Solution |
3
Discuss
|
Which of the following is the syntax for views where v is view name?
Solution |
4
Discuss
|
Materialized views make sure that
Solution |
5
Discuss
|
SQL view is said to be updatable (that is, inserts, updates or deletes can be applied on the view) if which of the following conditions are satisfied by the query defining the view?
Solution |
6
Discuss
|
Updating the value of the view
Solution |
7
Discuss
|
Which of the following creates a virtual relation for storing the query?
Solution |
8
Discuss
|
Which of the following is used at the end of the view to reject the tuples which do not satisfy the condition in where clause?
Solution |
9
Discuss
|
For the view Create view instructor_info as
If we insert tuple into the view as insert into instructor info values (’69987’, ’White’, ’Taylor’);
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved