Challenge: Transaction Creation
Now, let's walk through creating a transaction ourselves based on the bank_accounts
table described in the previous chapter.
We're going to perform a straightforward financial transaction: transferring funds from one account to another. Ensuring that both steps occur as a single logical unit exemplifies a real-life transaction.
We will work with account numbers 101
and 789
and the initial balance will be the following:
Swipe to start coding
Your task is to fill in the gaps in the query to create a SQL transaction. Use the keywords BEGIN
and COMMIT
to do it.
Once you've completed this task, click the button below the code to check your solution.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.35Awesome!
Completion rate improved to 4.35
Challenge: Transaction Creation
Now, let's walk through creating a transaction ourselves based on the bank_accounts
table described in the previous chapter.
We're going to perform a straightforward financial transaction: transferring funds from one account to another. Ensuring that both steps occur as a single logical unit exemplifies a real-life transaction.
We will work with account numbers 101
and 789
and the initial balance will be the following:
Swipe to start coding
Your task is to fill in the gaps in the query to create a SQL transaction. Use the keywords BEGIN
and COMMIT
to do it.
Once you've completed this task, click the button below the code to check your solution.
Solution
Thanks for your feedback!
single
Awesome!
Completion rate improved to 4.35
Challenge: Transaction Creation
Swipe to show menu
Now, let's walk through creating a transaction ourselves based on the bank_accounts
table described in the previous chapter.
We're going to perform a straightforward financial transaction: transferring funds from one account to another. Ensuring that both steps occur as a single logical unit exemplifies a real-life transaction.
We will work with account numbers 101
and 789
and the initial balance will be the following:
Swipe to start coding
Your task is to fill in the gaps in the query to create a SQL transaction. Use the keywords BEGIN
and COMMIT
to do it.
Once you've completed this task, click the button below the code to check your solution.
Solution
Thanks for your feedback!