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 the basic functions for master, msdb, model, tempdb and resource databases?
What is the difference between nvl and nvl2?
What is table value parameters (tvp)?
Can sql servers linked to other servers like oracle?
Can you leave a union at any time?
How should i optimize the time for execution of stored procedure having single input and many output from the different tables?
What does top operator do?
what are acid properties? : Sql server database administration
Explain aggregate functions?
Tell me what is the significance of null value and why should we avoid permitting null values?
Which autogrowth database setting is good?
Explain what are the restrictions while creating batches in sql server?
What is query and its types?
What is difference between group by and having?
What is #temp and @table variable in SQL server?