[Solved] CSE344 Homework 4: Database Design
5.0
1 customer review
Digital download
Digital download
$25.00
Message us on WhatsApp for payment or download support.
Open WhatsApp
hw4-flightapp.pdf. If you choose to take a picture, please use the tool https://imagetopdf.com to convert your image to a pdf.
License plate can have letters and numbers; driverID and Social Security contain only numbers; maxLiability is a real number; year, phone, capacity are integers; everything else are strings.
a. (10 points) Translate the diagram above by writing the SQL CREATE TABLE statements to represent this E/R diagram. Include all key constraints; you should specify both primary and foreign keys. Make sure that your statements are syntactically correct (you might want to check them using SQLite, Azure SQL Server, or another relational database).
b. (5 points) Which relation in your relational schema represents the relationship insures in the E/R diagram? Why is that your representation?
c. (5 points) Compare the representation of the relationships drives and operates in your schema, and explain why they are different.
Write your answers in a SQL file named hw4-driving.sql. Write your answers to questions b and c as SQL comments in the same file.
hw4-theory.txt.
Sales(name, discount, month, price)
He inserted his data into a database, then realized that there was something wrong with it: it was difficult to update. He hires you as a consultant to fix his data management problems. He gives you this file mrFrumbleData.txt and says: Fix it for me!. Help him by normalizing his database. Unfortunately you cannot sit down and talk to Mr. Frumble to find out what functional dependencies make sense in his business. Instead, you will reverse engineer the functional dependencies from his data instance.
SELECT COUNT(*) FROM Table).hw4-frumble.sql. Dont forget to use SQL comments for all non-SQL-code answers.