adplus-dvertising
frame-decoration

Question

Which of the following query deletes a job candidate?

a.

BEGIN TRANSACTION;
GO
DELETE FROM HumanResources.JobCandidate
WHERE JobCandidateID = 13;
GO
COMMIT TRANSACTION;

b.

BEGIN TRANSACTION;
GO
DELETE FROM HumanResources.JobCandidate
WHERE JobCandidateID = 13;
GO
ROLLBACK TRANSACTION;

c.

BEGIN TRANSACTION;
GO
DELETE FROM HumanResources.JobCandidate
WHERE JobCandidateID = 13;
GO
END;

d.

All of the mentioned

Posted under SQL Server

Answer: (a).BEGIN TRANSACTION;
GO
DELETE FROM HumanResources.JobCandidate
WHERE JobCandidateID = 13;
GO
COMMIT TRANSACTION;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following query deletes a job candidate?

Similar Questions

Discover Related MCQs

Q. Point out the wrong statement.

Q. A ROLLBACK TRANSACTION statement specifying a savepoint_name releases any locks that are acquired beyond the savepoint, with the exception of __________

Q. What is the fundamental difference between COMMIT and COMMIT WORK?

Q. Implicit transactions are maintained by SQL Server for ___________

Q. ROLLBACK WORK always rolls back to the outermost BEGIN TRANSACTION statement for ___________ transactions.

Q. Which of the following condition will ignore the request to enable delayed durability?

Q. Which of the following resource can be locked in SQL Server?

Q. Point out the correct statement.

Q. ______________ allow concurrent transactions to read (SELECT) a resource.

Q. Which is the most restrictive isolation level in transaction?

Q. Point out the wrong statement.

Q. __________ locks allow processes to bulk copy data concurrently into the same table.

Q. Which of the following locking hint is similar to NOLOCK?

Q. Which of the following mode indicates the intention of the transaction to read all of the resources lower in the hierarchy?

Q. Which of the following lock is incompatible with all lock modes?

Q. Which of the following mode has exclusive range and exclusive resource lock?

Q. Which of the following design strategy can reduce the occurrence of blocking locks?

Q. Point out the correct statement.

Q. Which of the following scenario give rise to deadlock (There are 2 processes)?

Q. Which of the following occurs when two connections need access to same piece of data concurrently and the meanwhile another is blocked because at a particular time, only one connection can have access?