what is the difference between table and view

Answer Posted / ashok

1.If we create a table it will save in database but a view is a virtual image there is no physical existance.
2. We can use order by clause in tables but views does not support order by clause.
3.In a view we can specify only a select statement inside a view but in tables we use all dml,ddl statements.
4.If we updating a base table using view which contains joins may not update correctly,but in tables we can update using joins.

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 the security model used in sql server 2005?

509


Types of Authentications in Sql Server? How user gets authenticated through windows authentication?

561


Can we call stored procedure in view in sql server?

494


How to use “drop” keyword in sql server and give an example?

683


What is the difference between push and pull subscription? : sql server replication

607






What is the fastest way to permanently delete a 1 million row table named customers?

597


How do we synchronize On-Premise SQL server with SQL Azure?

96


What is difference between index seek vs. Index scan?

620


What is the downside of using udf?

557


what is a live lock? : Sql server database administration

494


What is a file group?

616


Explain the various types of concurrency problem. I.e. Lost or buried updates, uncommitted dependency, inconsistent analysis, phantom read?

499


what is an index? : Sql server database administration

518


What is trigger explain with program?

530


Can we hide the definition of a stored procedure from a use?

651