Ab Initio Data Warehousing Question:

Download Job Interview Questions and Answers PDF

Explain the difference between the truncate and delete commands?

Ab Initio Interview Question
Ab Initio Interview Question

Answer:

Truncate :
It is a DDL command, used to delete tables or clusters. Since it is a DDL command hence it is auto commit and Rollback can't be performed. It is faster than delete.

Delete:
It is DML command, generally used to delete a record, clusters or tables. Rollback command can be performed , in order to retrieve the earlier deleted things. To make deleted things permanently, "commit" command should be used.

Download Ab Initio Interview Questions And Answers PDF

Previous QuestionNext Question
When running a stored procedure definition script how would you guarantee the definition could be rolled back in the event of problems?Describe the process steps you would perform when defragmenting a data table. This table contains mission critical data?