Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Create an empty database. Call it Personnel . db 2 . Create a table called people with the following fields. Make the ID
Create an empty database. Call it Personneldb
Create a table called people with the following fields. Make the ID the primary key.
Field Name
Data Type
ID
INTEGER primary key
firstname
TEXT
lastname
TEXT
title
TEXT
Create a table called addresses with the following fields. Make the ID the primary key, and have the personnumber be a foreign key into the person table.
Field Name
Data Type
ID
INTEGER primary key
personid
BIGINT FK to person table
street
TEXT
city
TEXT
state
TEXT
zip
TEXT
Insert three person records into the person table, using whatever information you like.
Insert one more person using SQL Look up the syntax for INSERT into...
Insert three address records, assigning addresses to person and address to person
Insert one more address using SQL
Query your database for all people and addresses using SQL with a LEFT JOIN.
Query your database for all people along with their addresses whose last name starts with Sor any letter you know is in your table and addresses using SQL with a LEFT JOIN.
Create three person records in Excel and autoimport then into your person table.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started