Oracle 12c: SQL
3rd Edition
ISBN: 9781305251038
Author: Joan Casteel
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
1- What gift will a customer who orders the book Shortest Poems receive? Use the actual bookretail value to determine the gift.the author name.
2- Identify the authors of the books Becca Nelson ordered. Perform the search using the customer name
SELECT COUNT(INV_NUMBER) AS 'Total Invoices', SUM(TOTAL_PRICE) AS 'Total Sales', MIN(TOTAL_PRICE) AS 'Minimum Customer Purchases', MAX(TOTAL_PRICE) AS 'Largest Customer Purchases', ROUND(AVG(TOTAL_PRICE), 2) AS 'Average Customer Purchases'FROM (SELECT CUS_CODE, LINE.INV_NUMBER AS INV_NUMBER, ROUND(SUM(LINE.LINE_PRICE * LINE.LINE_UNITS), 2) AS TOTAL_PRICEFROM INVOICE, LINE WHERE INVOICE.INV_NUMBER = LINE.INV_NUMBER GROUP BY CUS_CODE, LINE.INV_NUMBERORDER BY CUS_CODE, LINE.INV_NUMBER)INVOICELINE;
i use this code but it didn't show the same value as in the question
Please answer the last 3 items thanks
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Your company needs to contact the 1st author of each textbook and to discuss reprint options. Pull out the 1st author for all the books. Please note that the order of authors has been marked as integer values 1, 2, 3, etc. in the field Auth_Order in the AuthorshipLog table. The query result should show the following information in the given order: Book title, 1st author’s last name, 1st author’s email, and 1st author’s phone. Save and name the query 2 First Author Contacts. How would I go about this in Access's query design?arrow_forwardSQL List the item number in lower case, description in upper case, order date 30 days later (add 30 days to order date), and the total price (which is number ordered times the quoted price). Rename the calculation as Total_Price and round to the nearest dollar.arrow_forwardPlease answer completely all questions will give rating surelyarrow_forward
- Find out the total sales, minimum sales, maximum sales and the number of invoices during the 2nd quarter of 2017 (April to June 2017).arrow_forwardWhat will be the result of the query based on the following criteria? <columnname> = ALL (<subquery>) Returns true if the value is equal to any value returned by the subquery. Returns true if the value is equal to every value returned by the subquery. Returns true if the value is not equal to any values returned by the subquery. Returns true if the value is not equal to any value returned by the subquery.arrow_forwardPlease write the query thanks. --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 discountsarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageA Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr