Complete the SQL query to select all columns from the orders table.
SELECT [1] FROM orders;The asterisk (*) selects all columns from the table.
Complete the SQL query to lock the row for update in the transactions table.
SELECT * FROM transactions WHERE id = 5 [1];
FOR UPDATE locks the selected rows to prevent concurrent modifications.
Fix the error in the transaction control statement to start a transaction.
[1] TRANSACTION;BEGIN TRANSACTION starts a new transaction block in PostgreSQL.
Fill both blanks to set the isolation level to serializable and start a transaction.
[2] TRANSACTION; SET TRANSACTION ISOLATION LEVEL [1];
Setting the isolation level to SERIALIZABLE ensures strict concurrency control. BEGIN TRANSACTION starts the transaction.
Fill the blanks to commit the transaction and release the lock.
[1]; [2] TRANSACTION;
COMMIT saves changes and releases locks. END TRANSACTION ends it (synonym for COMMIT).