Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 6 . 1 List the customer id , name, job id , and job description for all bookjobs and order by cust _ id
Task
List the customer id name, job id and job description for all bookjobs and order by custid You are required to answer the question with a join, showing how it can be done using only a WHERE condition.
Remember: KNOW THY SCHEMA.
The required data comes from more than one table. Which tables are required where does customer name come from and where does job description come from How are the tables linked? What is the foreign key?
Task
List the customer id name, job id and job description for all bookjobs and order by custid You are required to answer the question with a join, showing how it can be done using only JOIN...ON The is the same a the previous question just using different join syntax.
Remember: KNOW THY SCHEMA.
The required data comes from more than one table. Which tables are required where does customer name come from and where does job description come from How are the tables linked? What is the foreign key?
Task
List the job id job description, purchase order number, item id and item description for all entries in the poitems table. Order the result by jobid poid and then itemid
You are required to answer the question with a join, showing how it can be done using only WHERE clause.
Remember: KNOW THY SCHEMA.
The required data comes from more than one table. Which tables are required? How are the tables linked? What are the foreign keys?
HINT: this query requires informationlinking across tables as you need to link from bookjobs to the items tables...KNOW THY SCHEMA.
Task
List the job id job description, purchase order number, item id and item description for all entries in the poitems table. Order the result by jobid poid and then itemid
You are required to answer the question with a join, showing how it can be done using only JOIN...ON clause. This is the same question as above but with a different join syntax
Remember: KNOW THY SCHEMA.
Task
What is the total cost of ordered items for each purchase order id Answer the question using a NATURAL JOIN.
Remember: KNOW THY SCHEMA.
HINT: use a GROUP BY and rename the calculation column to 'Total Cost'
Task
For each publisher with more than $ in purchase orders, list the customer id name, credit code, and total of the orders. Use a WHERE clause to perform the join across the five required tables.
Task
For all purchase orders with quantity greater than the average purchase order quantity, list the publishers name, city, credit code, and quantity. Order by the quantity. Use a JOIN...ON clause to join tables.
HINT: You will need to use a subquery.
Task
List once the customer id and name of each publisher with a current job. Use which ever join method you like, but do not use a GROUP BY clause.
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