Difference between:
- Delete & Truncate
- Table & View
- Constraints & Triggers



Difference between: - Delete & Truncate - Table & View - Constraints & Triggers..

Answer / amrish kumar

The DELETE command is used to remove rows from a table. A
WHERE clause can be used to only remove some rows. If no
WHERE condition is specified, all rows will be removed.
After performing a DELETE operation you need to
COMMIT or ROLLBACK the transaction to make the change
permanent or to undo it.

TRUNCATE removes all rows from a table. The operation cannot
be rolled back. As such, TRUCATE is faster and doesn't use
as much undo space as a DELETE.



DROP and TRUNCATE are DDL commands, whereas DELETE is a DML
command. Therefore DELETE operations can be rolled back
(undone), while DROP and TRUNCATE operations cannot be
rolled back.


Table is a basic unit of data storage in an oracle database.
It holds all user accessible data.

View is a virtual table
- It can be created on a table or another view.
- It is just like a window through which we can access or
change base table data.
- It does contain data of its own. It always takes data from
its base table.
- It is stored as a query in data dictionary.Whenever you
query a view it gets data from its based table using this query.

Constraints are great at maintaining database integrity for
database fields and relationships between database tables.

Triggers are great for checking past vs. current values and
making decisions based on that data.

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Explain collation?

0 Answers  


Explain Capacity planning to create a database? and how to monitor it?

0 Answers  


Why truncate is ddl command?

0 Answers  


What are the steps you will take, if you are tasked with securing an SQL Server?

1 Answers   HCL,


Explain about Views?

0 Answers   Infosys,






How to download microsoft sql server 2005 express edition?

0 Answers  


What's the difference between a primary key and a unique key?

4 Answers  


What is self contained scalar sub query?

0 Answers  


Can we have more than one NULL in a column having unique constraint?

12 Answers   247Customer,


What is save transaction and save point?

0 Answers  


in tabase table having a column in it empname field is there which having 5 duplicate values is there i want deleted all the duplicates i want showing only one name only.

7 Answers  


What is multi-statement table-value user-defined function?

0 Answers  


Categories