If there exist a index on the table, and we then make a
view on that table (include the indexed column from base
table) than why do we require indexing on view?Doesnt it
create an overhead?

Answers were Sorted based on User's Feedback



If there exist a index on the table, and we then make a view on that table (include the indexed co..

Answer / sql2000

Lets start on what a view is, view is a name given to a
select statement. The select statement is executed when the
view name is called.

When you create index on the view the select statement is
materialized into a table and we have the contents of the
select statement as a table. This makes it faster at times
to run select statements on rather than the actual tables.
Hence it makes sense to create indexes on views.

Let me know if anyone has a better point of view on
this. :)

Is This Answer Correct ?    0 Yes 0 No

If there exist a index on the table, and we then make a view on that table (include the indexed co..

Answer / rama krishna

it depends on search critiria for view

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL Server Interview Questions

What is your recommendation for a query running very slow? : sql server database administration

0 Answers  


What samples and sample databases are provided by microsoft?

0 Answers  


What is exclusive locks?

0 Answers  


What is the usage of the sign function?

0 Answers  


What happens if the update subquery returns multiple rows in ms sql server?

0 Answers  






Explain contrast amongst grouped and non-bunched records?

0 Answers  


how do we find every fifth record in a table

14 Answers   Aspire, HCL,


What is inline variable assignment?

0 Answers  


What is the command used to check locks in microsoft sql server?

0 Answers  


Does group by or order by come first?

0 Answers  


What are various aggregate functions that are available?

0 Answers  


How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?

0 Answers  


Categories