Sie sind auf Seite 1von 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

Das könnte Ihnen auch gefallen