About Indexed Views? with example?
plz reply...
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / manoj joshi
Creating index on views is not possible in Sybase.
Is This Answer Correct ? | 6 Yes | 0 No |
Can you change the data type of a column in a table after the table has been created? If so, which command would you use?
What are the differences between stored procedure and the dynamic sql?
what types of replication are supported in sql server? : Sql server database administration
i need to know how i display department which has salary > =5000 for the below table Department ----------- salary deptname 1000 a 3000 a 2000 b 3000 b 4000 c 5000 c kindly send the query to thilakvinoth13@gmail.com
what is the Surrogate key?and wt is the diff between Primary key and Surrogate Key?
Can a table be moved to different filegroup?
What is data source in connection string?
what is a mixed extent? : Sql server administration
How is table type constraint applied to a table?
What are .mdf files?
define and explain the differences between clustered and non-clustered indexes.
What is transact-sql language?