Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Requirements Use Lab 2 B . SQL to create the tables and populate them with data. You may want to add or change the data
Requirements
Use LabBSQL to create the tables and populate them with data. You may want to add or
change the data to fully test your queries.
Write queries to select the following information from the Stuff Be Gone Database.
Objectives:
Select data from tables using queries.
Insert, Update, and Delete data using DML
Create and use SQL views
Submission Requirements
Your lab submission will include the following:
Create a single script file called "LabBSolution.sql that contains a clearly commented
section of statements for each component. Each section will contain the SQL
statements required to complete the question. DO NOT include anything else test data,
random comments, etc. The entire script should be able to run at once. An electronic
copy of your Lab not compressed will be submitted to Moodle
If there are any known errors in your solution you must identify them at the top of your
script in comments. Errors you have identified and simply could not find a solution for are
more acceptable than undocumented errors Failure to document known errors will
result in mark mark deduction for each undocumented error up to marks.
Any additional requirements as specified by your instructor.
Other Considerations
Do not make assumptions. If you have questions about the company, ask your instructor client
This is not a group project. Working with another student on lab material may result in a grade of
for this lab. Up to Marks may be deducted for incomplete lab submission requirements or poor
client communication check the provided documentation for the answer before asking the client
Select the full name and city for the customer with customer ID Show first name
and last name as one column. mark
For all staff, select the staff first name, last name, and the number of consignments
they have. marks
Select the average Category Cost. marks
Select the customer first name and last name for all customers whose total
consignment subtotals are more than $ marks
Select all the staff full names with the customer full names of the consignments they
have worked on Include staff that have not worked on any consignments marks
Select the first name and last name of all the customers whose last name starts with
mark
Select the amount of money that was made each month this year. Show the month
name and amount. List the months in chronological order by month. Do not include
GST in the totals. marks
Select the StaffTypeDescriptions of the staff types that have no staff in them.
marks
Select the full names of all the people in the database whose lastname is between
and characters long. marks
Create a view called CustomerSummary that contains CustomerID, FirstName,
LastName, and the Descriptions of the items they are selling. Assume all customers
have at least one item on consignment. marks
Using the CustomerSummary view select the Customerid, fullname, and the number
of items they have on consignment. marks
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