adplus-dvertising
frame-decoration

Question

Consider the two relations instructor and department. Which of the following is used to create view for these relations together?

a.

CREATE VIEW instructor_info AS
SELECT ID, name, building
FROM instructor, department
WHERE instructor.dept name= department.dept name;

b.

CREATE VIEW instructor_info
SELECT ID, name, building
FROM instructor, department;

c.

CREATE VIEW instructor_info AS
SELECT ID, name, building
FROM instructor;

d.

CREATE VIEW instructor_info AS
SELECT ID, name, building
FROM department;

Answer: (a).CREATE VIEW instructor_info AS
SELECT ID, name, building
FROM instructor, department
WHERE instructor.dept name= department.dept name;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the two relations instructor and department. Which of the following is used to create view for these relations together?

Similar Questions

Discover Related MCQs

Q. Select * from employee where employee_id>1009;

Which of the following employee_id will be displayed?

Q. Which of these query will display the the table given below ?

Q. Which one of the following is the right syntax for DECODE ?

Q. What do data warehouses support?

Q. { (item name, color, clothes size), (item name, color), (item name, clothes size), (color, clothes size), (item name), (color), (clothes size), () }

This can be achieved by using which of the following ?

Q. In SQL the cross-tabs are created using

Q. The operation of moving from finer-granularity data to a coarser granularity (by means of aggregation) is called a ________

Q. The process of viewing the cross-tab (Single dimensional) with a fixed value of one attribute is

Q. The generalization of cross-tab which is represented visually is ____________ which is also called as data cube.

Q. Data that can be modeled as dimension attributes and measure attributes are called _______ data.

Q. OLAP stands for

Q. The command ________________ such tables are available only within the transaction executing the query, and are dropped when the transaction finishes.

Q. The functions which construct histograms and use buckets for ranking is

Q. Suppose we are given a view tot credits (year, num credits) giving the total number of credits taken by students in each year.The query that computes averages over the 3 preceding tuples in the specified sort order is

Q. Inorder to simplify the null value confusion in the rank function we can specify

Q. If there are n tuples in the partition and the rank of the tuple is r , then its ________ is defined as (r āˆ’1)/(nāˆ’1) .

Q. SELECT ID, GPA
FROM student grades
ORDER BY GPA
____________;

Inorder to give only 10 rank on the whole we should use

Q. The __________ function that does not create gaps in the ordering.

Q. In rank() function if one value is shared by two tuples then

Q. Ranking of queries is done by which of the following ?