Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN: 9781337508841
Author: Carey
Publisher: Cengage
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
10. Produce a list of each customer number and the third and fourth digits of his or her zipcode. The query should also display the position of the first occurrence of a 3 in thecustomer number, if it exists.
SQL commands
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
What is the likely data sparsity of the EMP_SEX column?
SELECT
EMP_LNAME, EMP_FNAME, EMP_AREACODE, EMP_SEX
FROM
EMPLOYEE
WHERE
EMP_SEX = 'F' AND EMP_AREACODE = '615'
ORDER BY
EMP_LNAME, EMP_FNAME;
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
- Produce a list of each customer number and the third and fourth digits of his or her zip code. The query should also display the position of the first occurrence of a 3 in the customer number, if it exists.arrow_forwardThe tblCities table contains a numeric field named Population. Which of the following LINQ statements calculates the total population of all the cities in the table?a. Dim intTotal As Integer = Aggregate city In CitiesDataSet.tblCities Select city.Population Into Sum()b. Dim intTotal As Integer = Sum city In CitiesDataSet.tblCities Select city.Population Into totalc. Dim intTotal As Integer = Aggregate CitiesDataSet.tblCities.city Select city.Population Into Sum()d. Dim intTotal As Integer = Sum city In CitiesDataSet.tblCities.populationarrow_forwardPlease help with this SQL assignment: StarsIn (movieTitle: string, movieYear: string, starName: string MovieStar(name: string, address: string, gender: char, birthdate: date) MovieExec(name: string, address: string, CERT#: int, netWorth: int) SELECT movieTitle FROM StarsIn, MovieStar WHERE starName = name AND birthdate = 1950 Translate to relational algebra.arrow_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
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
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
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
dml in sql with examples; Author: Education 4u;https://www.youtube.com/watch?v=WvOseanUdk4;License: Standard YouTube License, CC-BY