33% found this document useful (3 votes)
7K views

MCQ On View

This document contains 10 multiple choice questions about views in SQL Server. The questions cover topics such as: which SQL statements can and cannot be used in a view query, whether indexes can be created on views, syntax for creating views, whether views always return up-to-date data, whether partitioned views can be created, syntax for dropping multiple views at once, statements that are true about views, whether computed columns can be included in views, alternative terms for views, and whether views are stored in databases. The answers to each question are provided at the end.

Uploaded by

Rashmi Chaudhary
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
33% found this document useful (3 votes)
7K views

MCQ On View

This document contains 10 multiple choice questions about views in SQL Server. The questions cover topics such as: which SQL statements can and cannot be used in a view query, whether indexes can be created on views, syntax for creating views, whether views always return up-to-date data, whether partitioned views can be created, syntax for dropping multiple views at once, statements that are true about views, whether computed columns can be included in views, alternative terms for views, and whether views are stored in databases. The answers to each question are provided at the end.

Uploaded by

Rashmi Chaudhary
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Multiple Choice Questions on Views

1) Which one is not applicable while querying on a view?


a)
b)
c)
d)

From
SELECT
Order By
Where

2) Can we create Clustered Index with Count (*) in a view?


a) True
b) False
3) Refer below query which leads to create a view named vwEmployee.
CREATE vwEmployee VIEW
AS
SELECT nothing
FROM dbo.Employee
WHERE ID < 100
Now, tell the problem in query?
a) Above query is correct.
b) View name must be after keyword view and
e replaced with *.
c) Replace nothing with view name.
d) Replace nothing with column names.

nothing

is not a keyword , so should b

4) A view always fetch up to date data from the table because it runs it s query e
ach time it receives a call, is this statement correct?
a) True
b) False
5) IN SQL Server, can we Create Partitioned Views?
a) True
b) False
6) How can you drop more than one View in single command?
a)
b)
c)
d)

Drop
Drop
Drop
Drop

viewname1 + viewname2 + viewname(n);


viewname1; Drop viewname2; Drop viewname(n);
viewname1; viewname2; viewname(n);
viewname1, viewname2,viewname(n);

7) What is true about views among all the given below statements:
a)
b)
c)
d)

View never references actual table for which it is created.


View can t use JOIN in it s query.
The performance of the view degrades if they are based on other views.
Only option to safeguard data integrity.

8) Can we show computed values in views from different columns of a table?


a) Yes
b) No
9) Views are also called as:

a)
b)
c)
d)

Complex tables
Simple tables
Virtual tables
Actual Tables

10) Are views stored in Databases?


a) Yes
b) No
Answers
1) c 2) b, 3) b, 4) a, 5) a, 6) d, 7) c, 8) a, 9) c, 10) a

You might also like