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

Explain alternate key, candidate key and composite key in sql server?

514


what are the disadvantages of cursors? : Sql server database administration

489


How to change a login name in ms sql server?

554


What is self contained scalar sub query?

527


How to create function with parameter in sql server?

549






what is raid? : Sql server database administration

546


What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?

513


What is postgresql server?

506


what are different types of backups available in sql server? : Sql server database administration

490


What are the types of indexes?

585


Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?

78


Explain log shipping and mention its advantages.

588


List the different types of joins?

561


How do we know if any query is retrieving a large amount of data or very little data?

546


What is ms sql server triggers?

528