Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is primary key index?

973


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

1010


What are “lost updates”?

989


How to rebuild the master database?

1074


Difference between report and query parameter.

1088


what are the new features in SSRS?

134


Explain what are commit and rollback in sql?

922


How do I find the sql server instance name?

961


What is sql injection? How to protect against sql injection attack?

985


How to get nth highest salary from employee table.

1158


Mention the different types of replication in sql server.

1014


What is dbcc updateusage?

1190


What is the sql server 2000 version number?

1072


Is it possible for a stored procedure to call itself or recursive stored procedure?

944


Please explain go command in sql server?

1042