Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will do the same exercise in MySQL and PostgreSQL 1. Create the table Student and Transcript Student: studid, name, address, status Primary key: studid

You will do the same exercise in MySQL and PostgreSQL

1. Create the table Student and Transcript

Student: studid, name, address, status

Primary key: studid

Transcript: studid, crscode, semester, grade

Primary key: studid, crscode, semester

Do not use foreign keys!

MySQL

PostgreSQL

2. Populate each table with at least 3 rows using INSERT INTO.

Provide the code and screenshots to support your work. Integrate the screenshots here.

MySQL

PostgreSQL

Exercise 6. Integrity Constraints and Transactions

A reservation transaction in an airline reservation system makes a reservation on a flight, reserves a seat on the plane, issues a ticket, and debits the appropriate credit card account. Assume that one of the integrity constraints of the reservation database is that the number of reservations on each flight does not exceed the number of seats on the plane. (Of course, many airlines purposely overbook and so do not use this integrity constraint).

Explain how transactions running on this system might violate each of the following properties. Provide an example for each property.

Atomicity

Consistency

Isolation

Durability

Atomicity

Consistency

Isolation

Durability

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago