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 |
How is foreign key related to primary key?
1.what is the difference between view and cursor? 2.If we do any change in view will it affect the database,similarly when we do changes in cursor will it affect the databse?with certain example?Thanks
What is repeatable read?
What are the dmvs? : sql server database administration
I have a huge amount of data which is displayed in a report. The data is viewed every day. Every day the data is displayed in 30 secs but suddenly today it is giving an timeout message today. Data has not been changed. The situation is same as yesterday. What might be the reason??? Please Answer.
How each E-R model constructs can be mapped to the relational model?
What is table level trigger?
What are the advantages to use stored procedures?
what are batch in sql server?
Can coalesce return null?
What is the order by used for?
explain declarative management framework (dmf) in sql server 2008?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)