Database Developer Question:

Download Job Interview Questions and Answers PDF

Explain me how are transactions used?

Database Developer Interview Question
Database Developer Interview Question

Answer:

Transactions allow you to group SQL commands into a single unit. The transaction begins with a certain task and ends when all tasks within it are complete. The transaction completes successfully only if all commands within it complete successfully. The whole thing fails if one command fails. The BEGIN TRANSACTION, ROLLBACK TRANSACTION, and COMMIT TRANSACTION statements are used to work with transactions. A group of tasks starts with the begin statement. If any problems occur, the rollback command is executed to abort. If everything goes well, all commands are permanently executed via the commit statement.

Download Database Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what are the possible values that can be stored in a BOOLEAN data field?Tell me what is a Record in a Database?