Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
Subqueries
--Create an sql script to answer the following questions.
--List all products whose unit price is less than the average price.
--List the shipper id, shipping company and freight cost for the order with the lowest freight charge.
--List all products with their highest unit price, i.e. not discounted.
--List the average unit price for each product category and
--the average unit price without discounts
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps with 2 images
Knowledge Booster
Similar questions
- Please identify the required subsection of a PL/SQL block. Also, provide a concise explanation of the three subsections that make up a PL/SQL block.arrow_forwardstudent(sid, sname, sex, age, year, gpa) dept(dname, numphds) prof(pname, dname) course(cno, cname, dname) major(dname, sid) section(dname, cno, sectno, pname) enroll(sid, grade, dname, cno, sectno) Write the following SQL query for the schema above: Print the name(s) and sid(s) of the student(s) enrolled in the most classes.arrow_forwardgiven data Team (tname, year, coach, salary) Player (pname, position) Winner (tname, year) Played (pname, tname, year, salary) write the sql queries for the following questions. 1) List all the players who have salary higher than 2M$, and have played for all the teams in the league . 2) List coaches who have also been players, and have coached only teams they once played for. 3)List all the players who won the Stanley Cup during two consecutive years with two different teams.arrow_forward
- Write a SQL command please Display the last name, job, salary, and commission percent for all employees who earn a commission and have a salary of at least 2500 but not more than 7000. Use descriptive titles.arrow_forwardUse SQL commands to finish the questions. Please include BOTH SQL commands and results in your answers. 1. List the first and last names of customers with credit limits of $1,000 or more. 2. List the order number for each order placed by customer number 125 on 11/15/2021. 3. List the item ID and description of each item that is not in category ‘HOR’. 4. List the item ID, description, and on-hand value for each item where on-hand value is at least $1,500. Assign the name ON_HAND_VALUE to the computed column. (Hint: On-hand value is the production of the units on hand and price.) 5. Use the IN operator to list the item ID and description of each item in category FSH or BRD or CAT. 6. Find the total of the balances for all customers represented by sales rep 10 with balances that are less than their credit limits. 7. List the item ID, description, and on-hand value of each item whose number of units on hand is more than the average number of units on hand for all items. (Hint: Use a…arrow_forwardSQL Developer provides a graphical user interface that can be used to send SQL commands to the Oracle Database Management System. Question 30 options: 1) True 2) Falsearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education