Sofia Relational Databases Unit 3.1
Which of the following statements represents a correctly structured transaction? - answerBEGIN;
UPDATE customer
SET company='Telus', support_rep_id=6
WHERE customer_id = 9;
UPDATE customer
SET phone='9991112222', email='daanpeeters@gmail.com'
WHERE first_name = 'Daan' AND last_name='Peeters';
UPDATE employee
SET reports_to = 1, title = 'IT Manager'
WHERE last_name = 'King' AND first_name = 'Robert';
COMMIT;
Which of the following criteria is specific to the consistency property? - answerWhen a transaction is completed, the database must be in a consistent state.
Which of the following scenarios reflect the atomicity property? - answer1. A user attempts to add an order to the database.
2. They successfully add the customer, then add the order table.
3. However, when trying to add the products to the order, the products no longer had any stock.
4. The entire order has to be canceled.
Which of the following scenarios reflects the consistency property at work? - answer1. The newsletter column can only accept Y or N as options.
2. The user attempts to enter in Maybe.
3. The transaction is rolled back.
Which of the following scenarios reflect the isolation property? - answer1. The product quantity starts at 200.
2. Transaction 1 runs to read the quantity of the product to be updated.
3. Transaction 2 attempts to read the quantity of the same product.
4. Transaction 2 has to wait until transaction 1 is complete.
5. Transaction 1 updates the product quantity to reduce it by 100.
6. Transaction 2 is now able to read the quantity to be updated.
7. Transaction 2 updates the product quantity to reduce it by 5.
8. The product quantity ends at 95.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller julianah420. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $15.49. You're not tied to anything after your purchase.