You are to use SQL Developer to perform the requested operations based on tables. I need...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are to use SQL Developer to perform the requested operations based on tables. I need to see your SQL command followed immediately by the result. You are to use comments to record your name, the assignment number, and the question number for all questions. No exceptions will be accepted your list file is to show all the required details as stated. Number each question for example 1a, and 1b. Place these altogether, so all question 1 solution are together and all question 2 solutions are together etc. If the questions are not numbered for this one I will not mark it and a grade of 0 will be issued. There are too many solutions and I will not attempt to figure which is which. Do not wait till the last minute to start this one, this one will raise the stress level and can cause baldness and gray hair not to mention sleepless nights. You need to use the traditional Oracle method and the JOIN... ON for each query. Watch for the OUTER JOIN queries. Download the update script for this assignment for the Just Lee database. A script has been provided for you on Blackboard called JLDB_Build_9.sql. You need to run this script for this question. So use up to the four different methods, JOIN... ON, JOIN... USING, NATURAL JOIN and the traditional join method. Do them together so both methods follow each other for each question. I have indicated how many queries for each question. Question 1 Create a list that displays the title of each book and the name and phone number of the person at the publisher's office whom you would need to contact to reorder each book. (4 methods) Question 2 Determine which orders have not yet been shipped and the name of the customer who placed the order. You are to sort the results by the date on which the order was placed. (4 methods) Question 3 Produce a list of all customers who live in the state of Florida (FL) and have ordered a book about computers. Category is COMPUTERS. Display the customer's name, the book title, the order number and the category. (4 methods) Question 4 Determine which books Jake Lucas has purchased. Perform the search using the customer's last and first names and not he customer number or an individual part of the customer's name. If he has purchased multiple copies of the same book, unduplicate the results. (4 methods) Question 5 Determine the profit of each book sold to Jake Lucas, using the actual price the customer paid (not the book's regular retail price). Sort the results by the date of the order. If more than one book was ordered, sort the results by the profit amount in descending order. Perform the search by using the customer's full name and not the customer number or part of his name. (4 methods) Question 6 Which book was written by an author with the last name of Adams? Perform the search using the author's last name. (4 methods) Question 7 What gift will a customer who orders the book Shortest Poems receive? Use the actual book retail value to determine the gift. (Use 2 methods JOIN... ON and Traditional) Question 8 Identify the author(s) of the books ordered by Becca Nelson. Perform the search using the customer's full name. (4 methods) Question 9 Display a list of all books in the BOOKS table. If a book has been ordered by a customer, also list the corresponding order number and the state in which the customer resides. (Outer join needed here, two methods only for the Outer Join) Question 10 An EMPLOYEES table was added to the Just Lee database to track employee information. Display a list of each employee's name, job title, and manger's name. Use column aliases to clearly identify employee and manger name values. Include all employees in the list and sort by manager name. If you are missing the EMPLOYEES table you did not download the new script. (4 methods) CUSTOMERS Customer# Lastname Firstname Email Address City State Zip Referred Region ORDERS Order# Customer# Orderdate Shipdate Shipstreet Shipcity Shipstate Shipzip Shipcost ORDERITEMS Order# Item# ISBN Quantity Paideach BOOKS ISBN Title Pubdate PublD Cost Retail Discount Category BOOKAUTHOR AUTHOR Author D Lname Fname PROMOTION Gift Minretail Maxretail ISBN Author D PUBLISHER PublD Name Contact Phone You are to use SQL Developer to perform the requested operations based on tables. I need to see your SQL command followed immediately by the result. You are to use comments to record your name, the assignment number, and the question number for all questions. No exceptions will be accepted your list file is to show all the required details as stated. Number each question for example 1a, and 1b. Place these altogether, so all question 1 solution are together and all question 2 solutions are together etc. If the questions are not numbered for this one I will not mark it and a grade of 0 will be issued. There are too many solutions and I will not attempt to figure which is which. Do not wait till the last minute to start this one, this one will raise the stress level and can cause baldness and gray hair not to mention sleepless nights. You need to use the traditional Oracle method and the JOIN... ON for each query. Watch for the OUTER JOIN queries. Download the update script for this assignment for the Just Lee database. A script has been provided for you on Blackboard called JLDB_Build_9.sql. You need to run this script for this question. So use up to the four different methods, JOIN... ON, JOIN... USING, NATURAL JOIN and the traditional join method. Do them together so both methods follow each other for each question. I have indicated how many queries for each question. Question 1 Create a list that displays the title of each book and the name and phone number of the person at the publisher's office whom you would need to contact to reorder each book. (4 methods) Question 2 Determine which orders have not yet been shipped and the name of the customer who placed the order. You are to sort the results by the date on which the order was placed. (4 methods) Question 3 Produce a list of all customers who live in the state of Florida (FL) and have ordered a book about computers. Category is COMPUTERS. Display the customer's name, the book title, the order number and the category. (4 methods) Question 4 Determine which books Jake Lucas has purchased. Perform the search using the customer's last and first names and not he customer number or an individual part of the customer's name. If he has purchased multiple copies of the same book, unduplicate the results. (4 methods) Question 5 Determine the profit of each book sold to Jake Lucas, using the actual price the customer paid (not the book's regular retail price). Sort the results by the date of the order. If more than one book was ordered, sort the results by the profit amount in descending order. Perform the search by using the customer's full name and not the customer number or part of his name. (4 methods) Question 6 Which book was written by an author with the last name of Adams? Perform the search using the author's last name. (4 methods) Question 7 What gift will a customer who orders the book Shortest Poems receive? Use the actual book retail value to determine the gift. (Use 2 methods JOIN... ON and Traditional) Question 8 Identify the author(s) of the books ordered by Becca Nelson. Perform the search using the customer's full name. (4 methods) Question 9 Display a list of all books in the BOOKS table. If a book has been ordered by a customer, also list the corresponding order number and the state in which the customer resides. (Outer join needed here, two methods only for the Outer Join) Question 10 An EMPLOYEES table was added to the Just Lee database to track employee information. Display a list of each employee's name, job title, and manger's name. Use column aliases to clearly identify employee and manger name values. Include all employees in the list and sort by manager name. If you are missing the EMPLOYEES table you did not download the new script. (4 methods) CUSTOMERS Customer# Lastname Firstname Email Address City State Zip Referred Region ORDERS Order# Customer# Orderdate Shipdate Shipstreet Shipcity Shipstate Shipzip Shipcost ORDERITEMS Order# Item# ISBN Quantity Paideach BOOKS ISBN Title Pubdate PublD Cost Retail Discount Category BOOKAUTHOR AUTHOR Author D Lname Fname PROMOTION Gift Minretail Maxretail ISBN Author D PUBLISHER PublD Name Contact Phone
Expert Answer:
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1337627900
13th edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these databases questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
What is wrong with the following variable declarations? If wrong, explain. If correct (nothing wrong), write "correct". double 1st_var = 10; int var2; int var3 = var2; string name="var3"; double...
-
What would a learning percentage of 120 percent imply?
-
3. Write the corresponding LEGv8 code for the following fragment of C code for (int i=0; i < 30; i++) C[i] = C[i-1] C[i+1]/16 - 5; Assume that the index i is in register X5, C is an integer array and...
-
Presented here are the accounts of Town and Country Realty Corporation for the year ended December 31, 2011. Requirements 1. Prepare Town and Country Realty Corporations income statement. 2. Prepare...
-
1. How would you describe Charles Bests approach to leadership? 2. What type(s) of followers would work well with Charles Best? What type(s) of followers would not work well with Best? 3. Why is...
-
What are the implications of team conflict on team performance, cohesion, and member satisfaction, and what strategies can teams employ to effectively manage and resolve conflicts while maintaining...
-
The first day of work for Prevosti Farms and Sugarhouse for all employees is February 1, 2022. February 4 is the end of the first pay period and includes work completed during the week of February...
-
Mitch and Sydney are married and will file a joint return. Their modified adjusted gross income is $98,000. Mitch has losses of $12,000 from rental activities in which he actively participates....
-
During 2022, Cullumber Company sold a building with a book value of $152,000 for proceeds of $182,000. The company also sold long-term investments for proceeds of $39,000. The company purchased land...
-
There is no spoilage, the beginning WIP Inventory is 10,750 units, and the ending WIP Inventory is 6,400 units for the second department in a two-department process. What is the number of units...
-
A girl exerts a horizontal force of 141 N on a crate with a mass of 32.7 kg. (a)If the crate doesn't move, what's the magnitude of the static friction force (in N)? (b)What is the minimum possible...
-
A grocery shopper tosses a(n) 8.5 kg bag of rice into a stationary 18.5 kg grocery cart. The bag hits the cart with a horizontal speed of 7.5 m/s toward the front of the cart. What is the final speed...
-
The N&M Co manufactures handbags. Recently one of the most popular handbags has been re-designed to incorporate more compartments and pockets in each bag. Each new handbag now requires 0.9 metres of...
-
An electric dipole is placed at an angle of 60 with an electric field of intensity 105 N/C. It experiences a torque equal to 83 N.m. If the dipole length is 2 cm. then the charge on the dipole is .C....
-
Identify the most stable compound:
-
What is a sequence? Write its syntax.
-
Based on the following query: SELECT P_CODE, SUM(LINE_UNITS) FROM LINE GROUP BY P_CODE HAVING SUM(LINE_UNITS) > (SELECT MAX(LINE_UNITS) FROM LINE); Write the command to create statistics for this...
-
Write the relational algebra formula to apply a UNION relational operator to the tables shown in Figure Q3.13. Figure Q3.13: Database name: Ch03_VendingCo Table name: MACHINE MACHINE_PRODUCT...
-
Find the solution of a spring-mass-damper system governed by the equation \(m \ddot{x}+c \dot{x}+k x=F(t)=\delta F . t\) with \(m=c=k=1\) and \(\delta F=1\). Assume the initial values of \(x\) and...
-
What is the difference between explicit and implicit integration methods?
-
The central difference approximation of \(d^{4} W / d x^{4}-\beta^{4} W=0\) at grid point \(i\) with step size \(h\) is a. \(W_{i+2}-4 W_{i+1}+\left(6-h^{4} \beta^{4} ight) W_{i}-4...
Study smarter with the SolutionInn App