Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 1 Create New Table and Fields ( 2 pts ) 1 . Open previous MedicalRentals.db file from the last unit ( DB IP 2
Q Create New Table and Fields pts
Open previous MedicalRentals.db file from the last unit DB IP
Create a new Invoices table and Add the eight corresponding fields to contain your data.
InvoiceID as an Integer and primary key
Month as Text
InvoiceDate as Text
BillDueDate as Text
RentalRate as Numeric
RentPaid as Numeric
PaymentDate as Text
FKRentalID as Integer Note: you dont necessarily have to include the foreign key constraint
Q Document your work by including a screenshot of the final product. Include the table name, the eight fields, and the respective properties as instructed
Q Populate Your Records pts
Click on Execute SQL
Enter the records as an INSERT INTO query
Tip: If you need a reminder on how to do this step, review our guided project for this unit and tweak the parameters for the different data types.
InvoiceID Month InvoiceDate BillDueDate RentalRate RentPaid PaymentDate FKRentalID
Sept
Sept
Sept
Sept
Sept
Sept
Sept
Sept
Sept
Sept
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Click Write Changes to commit your changes to your database.
View your results under Browse Data
Q Capture your version of the screenshot above. Include at least ten of your rows and ensure that your syntax is correct for the type of data added numeric versus text Include the log text that says that Execution finished without errors.
Q JOIN Tables to Add Rental and Invoice Information pts
In this step, we want to add the tenants information to the invoice information by joining the two tables together.
Make sure the following columns are visible:
Invoices.InvoiceID
Invoices.Month
Invoices.RentPaid
OfficeRentals.FirstName
OfficeRentals.LastName
Q Capture a screenshot that shows the SQL commands you used, at least five of your results rows and include the log text that says that Execution finished without errors.
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