Answer Posted / sruthi
Index created on view is called as indexed view or
materialised view.
To create index on a view we should create a view
with "schemabinding"
eg:
create view v1 with schemabinding as
select empno,ename from dbo.emp
---
while creating view with schema binding refer to table by
default owner
---
now create index on that view
--
create clustered index i1 on v1(empno)
--
now this is called as indexed view
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What are types of storage modes? : sql server analysis services, ssas
what are the new features in SSRS?
Explain the properties of sub-query in sql server?
Explain cross join or cartesian product in sql?
How many databases can we create in a single server?
How to get the definition of a user defined function back?
What are the differences between DDL, DML and DCL in SQL?
How to create a view on an existing table in ms sql server?
What are different types of replication in sql server?
In what three ways is the return statement used in a stored procedure?
Explain user defined views?
How do you manipulate data?
What are the restrictions while creating batches in sql server?
Explain for xml explicit mode?
What do you mean by cardinality?