Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1: Consider the diagram from your previous assignment: Generate SQL script (i.e. create the necessary tables, including primary/foreign keys) that represents the diagram from

Part 1:

Consider the diagram from your previous assignment:

Generate SQL script (i.e. create the necessary tables, including primary/foreign keys) that represents the diagram from your previous assignment. Once you have generated SQL tables, come up with INSERT statements that load the following data into the database:

John Smith, 111 N. Wabash Avenue, who worked as a plumber and a bouncer

Jane Doe, 243 S. Wabash Avenue, who worked as a waitress and an accountant

Mike Jackson, 1 Michigan Avenue, with no record of previous jobs held

Mary Who, (no address available), who worked as an accountant and risk analyst

Jane Doe has two loans out: #1, 5% interest, $10000 and #2, 12%, $7000

Mike Jackson has three loans out: #2, 10% interest, $1000 and #3, 20%, $25000, #4, 3% interest, $100000.

You may make any reasonable assumptions about data domains. Remember that in SQL strings (CHAR and VARCHAR/VARCHAR2) are represented with single quotes. So, for example, Plumber is the way to represent a job (not Plumber). Also remember that all tables must have a primary key.

image text in transcribed

First Last Jobs Interest% Address Address Name Number Amount Name PERSON 1 takesM takes LOAN

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

Step: 3

blur-text-image

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

explain what is meant by redundancy

Answered: 1 week ago