0
0
PostgreSQLquery~10 mins

Repeatable read behavior in PostgreSQL - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start a transaction with repeatable read isolation level.

PostgreSQL
BEGIN TRANSACTION ISOLATION LEVEL [1];
Drag options to blanks, or click blank then click option'
Aread committed
Bread uncommitted
Crepeatable read
Dserializable
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'read committed' which allows non-repeatable reads.
Using 'serializable' which is stricter than repeatable read.
2fill in blank
medium

Complete the code to set the transaction isolation level to repeatable read using SET command.

PostgreSQL
SET TRANSACTION ISOLATION LEVEL [1];
Drag options to blanks, or click blank then click option'
Arepeatable read
Bread uncommitted
Cread committed
Dserializable
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'repeatable read' with 'read committed'.
Using 'serializable' which is stricter.
3fill in blank
hard

Fix the error in the transaction start statement to use repeatable read isolation level.

PostgreSQL
BEGIN TRANSACTION ISOLATION [1];
Drag options to blanks, or click blank then click option'
Alevel repeatable read
Bisolation level repeatable read
Crepeatable_read
Drepeatable read
Attempts:
3 left
💡 Hint
Common Mistakes
Using underscores instead of spaces.
Including extra keywords in the blank.
4fill in blank
hard

Fill both blanks to complete the query that shows the current transaction isolation level.

PostgreSQL
SHOW [1] [2];
Drag options to blanks, or click blank then click option'
Atransaction
Bisolation
Clevel
Dmode
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'transaction mode' which is invalid.
Using 'isolation mode' which is invalid.
5fill in blank
hard

Fill all three blanks to complete the SQL that sets repeatable read isolation level and starts a transaction.

PostgreSQL
[1] TRANSACTION [2] LEVEL [3];
Drag options to blanks, or click blank then click option'
ABEGIN
BISOLATION
Crepeatable read
DSTART
Attempts:
3 left
💡 Hint
Common Mistakes
Using BEGIN without ISOLATION keyword.
Using 'repeatable_read' with underscore.