Q1
True / FalseA database view in Microsoft SQL Server is a virtual table.
A view is indeed a virtual table that provides a way to present data from one or more tables.
Q2
True / FalseDatabase views in Microsoft SQL Server cannot contain computed columns.
Views can include computed columns derived from other columns.
Q3
True / FalseIn Microsoft SQL Server, a view can be indexed for performance improvement.
Indexed views can enhance performance by storing the result set of the view.
Q4
True / FalseViews in Microsoft SQL Server can be used to simplify complex queries.
Views abstract the complexity of SQL queries, making them easier to use.
Q5
True / FalseDatabase views in Microsoft SQL Server can include ORDER BY clauses.
Views can include ORDER BY clauses only when the TOP clause is also used.
Q6
True / FalseAdvanced Topics - Database View: Views in Microsoft SQL Server always reflect the current data in the base tables.
Views are dynamic and always reflect the current data in the underlying tables.
Q7
True / FalseAdvanced Topics - Database View: In Microsoft SQL Server, a view can be created with the WITH SCHEMABINDING option to prevent changes to underlying tables.
The WITH SCHEMABINDING option binds the view to the schema of the underlying tables, preventing changes that would affect the view.
Q8
True / FalseAdvanced Topics - Database View: A view can include data from multiple databases in Microsoft SQL Server.
Views can reference tables from multiple databases, provided the necessary permissions are in place.
Q9
True / FalseAdvanced Topics - Database View: Views in Microsoft SQL Server can be used to enforce data integrity.
Views do not enforce data integrity but can be used in conjunction with constraints and triggers to help maintain it.
Q10
True / FalseAdvanced Topics - Database View: Modifications to data in a view are always reflected in the underlying tables in Microsoft SQL Server.
Updates to a view are reflected in the underlying tables, subject to certain restrictions.
Q11
True / FalseAdvanced Topics - Database View: Views can have their own indexes independent of the base tables in Microsoft SQL Server.
Indexed views have indexes that are stored separately from the base tables.
Q12
True / FalseAdvanced Topics - Database View: A view in Microsoft SQL Server can be updated even if it contains JOIN operations.
Updating views with joins can be complex and may have restrictions depending on the nature of the joins.
Q13
True / FalseAdvanced Topics - Database View: It is not possible to use aggregate functions in a view definition in Microsoft SQL Server.
Aggregate functions can be used in view definitions.
Q14
True / FalseAdvanced Topics - Database View: The CREATE VIEW statement in Microsoft SQL Server can include parameters.
Views do not accept parameters directly; however, table-valued functions can be used as an alternative.
Q15
True / FalseAdvanced Topics - Database View: In Microsoft SQL Server, views can help control access to sensitive data.
Views can restrict user access to specific data by providing a limited subset of columns or rows.