Answer & Explanation:Lab 5.docx Part I—Hands-on LabCreate a new Microsoft Access database named DryCleaning.Note that Microsoft Access does not support the use of SQL scripts to create databases. In a Microsoft Word document, type the SQL script that you would use to create the database.Add a table named Customers. In Microsoft Word, type the SQL script that you would use to create the table. Include the following fields:CustomerNumber (AutoNumber, Primary Key, required)FirstName (Text(25), required)LastName (Text(25), required)Phone (Text(12), required)Email (Text(100))Add a table named Invoice. In Microsoft Word, type the SQL script that you would use to create the table. Include the following fields:InvoiceNumber (Number-Long Integer, required, Primary Key)CustomerNumber (Foreign Key, Number-Long Integer, Required)DateIn (Date/time, required)DateOut (Date/time)TotalAmount (Currency)Add a table named Invoice_Item. In Microsoft Word, type the SQL script that you would use to create the table. Include the following fields:ItemNumber (AutoNumber, Primary Key, required)InvoiceNumber (Foreign Key,Number-LongInteger, required)Item (Text(50), required)Quantity (Number-Long integer, required)UnitPrice (Currency, required)Write INSERT statements to add the data provided to the tables. Click hereto download the data that needs to be added.In one Word document (SU_ITS3102_W5_A2_LastName_FirstInitial.docx), paste the SQL statement to meet the following criteria. Put a title above each as stated and save each query with the title name. You will add needed documentation from Part II to this document.List the phone and last name of all the customers. Titled this01CustomerPhone-LastNameList the phone and last name of all the customers with the first name “Nikki.” Titled this 02NikkiPhoneLastNameList the phone, first name, and last name of all the customers having phone numbers with “2” and “3” as the second and third numbers, respectively. Titled this 03PhoneWith?23.Determine the maximum and minimum total amount. Save As04AverageTotalAmount.Show the first and last names of all the customers who have had an order with total amount greater than $100.00. Use a subquery and present the results first sorted by last names in the ascending order and then by first names in the descending order. Titled this05CustomersTotalAmountGreaterThan100.From the Customers table, concatenate each customer’s last name and first name by using the comma-space-delimited technique; name the virtual column as “Full Name.” Titled this06CustomerLastFirstNamesConcantenated.Use a subquery to show the first and last name of all the customers who have had an order with an item named “Dress Shirt”. Present the results first sorted by last name in the ascending order (Titled this07FirstLastNamesDressShirtSortedLastName) and then by first name in the descending order. Titled this08FirstLastNamesDressShirtSortedFirstNameDescending.Use a join with a subquery to show the first name, last name, and total amount of all the customers who have had an order with an item named “Dress Shirt”. Present the results first sorted by last name in the ascending order (Titled this09FirstLastNamesDressShirtSortedLastNameWithTotal) and then by first name in the descending order. Titled this10FirstLastNamesDressShirtSortedFirstNameDescendingCalculate the average total amount. Titled this 11AverageTotalAmount.Submission DetailsName your document SU_ITS3102_W5_A2_LastName_FirstInitial.doc.Name your Dry Cleaning database U_ITS3102_W5_A2_LastName_FirstInitial_DryCleaning.accdb.Name your course project databaseSU_ITS3102_W5_A2_LastName_FirstInitial_Final.accdb.Submit your Microsoft Word document and Microsoft Access databases to the W5 Assignment 2 Dropbox by Tuesday, October 20, 2015.Assignment 2 Grading CriteriaMaximum PointsSubmitted a Microsoft Access database which included the three specified tables with relevant data populated in them.50Submitted the required database SQL statements.50Submitted a Microsoft Access database as per the course project requirements.50Submitted SQL statements for the database and the required queries.50Written components.50Total:250
lab_5.docx
Unformatted Attachment Preview
Part I—Hands-on Lab
•
•
•
•
•
•
Create a new Microsoft Access database named DryCleaning.
Note that Microsoft Access does not support the use of SQL scripts to create databases. In a
Microsoft Word document, type the SQL script that you would use to create the database.
Add a table named Customers. In Microsoft Word, type the SQL script that you would use to
create the table. Include the following fields:
o CustomerNumber (AutoNumber, Primary Key, required)
o FirstName (Text(25), required)
o LastName (Text(25), required)
o Phone (Text(12), required)
o Email (Text(100))
Add a table named Invoice. In Microsoft Word, type the SQL script that you would use to create
the table. Include the following fields:
o InvoiceNumber (Number-Long Integer, required, Primary Key)
o CustomerNumber (Foreign Key, Number-Long Integer, Required)
o DateIn (Date/time, required)
o DateOut (Date/time)
o TotalAmount (Currency)
Add a table named Invoice_Item. In Microsoft Word, type the SQL script that you would use to
create the table. Include the following fields:
o ItemNumber (AutoNumber, Primary Key, required)
o InvoiceNumber (Foreign Key,Number-LongInteger, required)
o Item (Text(50), required)
o Quantity (Number-Long integer, required)
o UnitPrice (Currency, required)
Write INSERT statements to add the data provided to the tables. Click hereto download the data
that needs to be added.
In one Word document (SU_ITS3102_W5_A2_LastName_FirstInitial.docx), paste the SQL
statement to meet the following criteria. Put a title above each as stated and save each query
with the title name. You will add needed documentation from Part II to this document.
• List the phone and last name of all the customers. Titled this01CustomerPhoneLastName
• List the phone and last name of all the customers with the first name “Nikki.” Titled
this 02NikkiPhoneLastName
• List the phone, first name, and last name of all the customers having phone numbers with
“2” and “3” as the second and third numbers, respectively. Titled this 03PhoneWith?23.
• Determine the maximum and minimum total amount. Save As04AverageTotalAmount.
• Show the first and last names of all the customers who have had an order with total
amount greater than $100.00. Use a subquery and present the results first sorted by last
names in the ascending order and then by first names in the descending order. Titled
this05CustomersTotalAmountGreaterThan100.
• From the Customers table, concatenate each customer’s last name and first name by
using the comma-space-delimited technique; name the virtual column as “Full Name.”
Titled this06CustomerLastFirstNamesConcantenated.
• Use a subquery to show the first and last name of all the customers who have had an
order with an item named “Dress Shirt”. Present the results first sorted by last name in
the ascending order (Titled this07FirstLastNamesDressShirtSortedLastName) and then
by first name in the descending order. Titled
this08FirstLastNamesDressShirtSortedFirstNameDescending.
• Use a join with a subquery to show the first name, last name, and total amount of all the
customers who have had an order with an item named “Dress Shirt”. Present the results
first sorted by last name in the ascending order (Titled
•
this09FirstLastNamesDressShirtSortedLastNameWithTotal) and then by first name in the
descending order. Titled this10FirstLastNamesDressShirtSortedFirstNameDescending
Calculate the average total amount. Titled this 11AverageTotalAmount.
…
Purchase answer to see full
attachment
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more