Question: Consider the diagram from your previous assignment: Generate SQL script ( i . e . create the necessary tables, including primary / foreign keys )
Consider the diagram from your previous assignment:
Generate SQL script ie create the necessary tables, including primaryforeign 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, N Wabash Avenue, who worked as a plumber and a bouncer
Jane Doe, S Wabash Avenue, who worked as a waitress and an accountant
Mike Jackson, 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: # interest, $ and # $
Mike Jackson has three loans out: # interest, $ and # $ # interest, $
You may make any reasonable assumptions about data domains. Remember that in SQL strings CHAR and VARCHARVARCHAR 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
