adplus-dvertising
frame-decoration

Question

create view studentdet
select ID, address, name
from student;

What is the result of the above query?

a.

It creates a view named studentdet with 3 attributes

b.

It creates a view named studentdet with 1 attribute

c.

It creates a view named ID with 2 attributes

d.

It is syntactically wrong and does not give a result

Posted under Advanced SQL DBMS

Answer: (d).It is syntactically wrong and does not give a result

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. create view studentdet select ID, address, name from student; What is the result of the above query?

Similar Questions

Discover Related MCQs

Q. State true or false: One view can be used in the expression defining another view

Q. If the actual relations used in the view definition change, the view is updated immediately. Such views are called _________

Q. The process of maintaining views up to date is called _________

Q. How can we insert data into a view?

Q. State true or false: We can update a view if it has multiple database relations in the from clause

Q. The _______ statement makes the updates performed by the transaction permanent.

Q. The _______ statement causes the statements to undo all the updates performed on the transaction

Q. Which of the following is not an integrity constraint?

Q. What is the function of the not null constraint?

Q. What is the function of the unique constraint?

Q. What is the functions of on delete cascade?

Q. What does the following condition do?
check( name in( ‘Ryan’, ‘Cristiano’, ‘Leo’))

Q. Referential integrity constraints are also called as _________

Q. ________ is a predicate that we expect the database to always satisfy

Q. State true or false: Oracle does not support complex check conditions

Q. What statement is used to define a new assertion in SQL?

Q. Which of the following is not a valid Date and Time data type?

Q. What is a timestamp?

Q. What does p indicate in the following data type?
time(p)

Q. What is a default value?