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

How many types of Cursor in SQL SERVER?

1 Answers  


What is difference between standardization and normalization?

0 Answers  


You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes to optimize performance, how should you distribute the tables and their indexes onto different file groups?

0 Answers  


What is msdb database? : SQL Server Architecture

0 Answers  


How to return the second 5 rows in ms sql server?

0 Answers  






What Is Rdbms?

0 Answers   Accenture,


Which table keeps information about stored procedures?

0 Answers  


How to get @@error and @@rowcount at the same time?

0 Answers  


What's the purpose of Stored Procedure?

6 Answers   Wipro,


WHAT OPERATOR PERFORMS PATTERN MATCHING?

2 Answers   CarrizalSoft Technologies, CTS,


How to create a simple stored procedure in ms sql server?

0 Answers  


Who developed sql server?

0 Answers  


Categories