Find the sum of the cost line column

Assignment Help Programming Languages
Reference no: EM13930447

1. Using the order_lines table from the database from lecture 2, write the SQL that will give the Min and Max values of the

column "cost_each"

2. Using the week 2 homework database, show each customer number and count the instances of each customer_numb in the

table orders.

Hint: follow this pattern (where the words TABLE and COLUMN are filling in for real names):

SELECT COLUMN, Count(COLUMN)

FROM TABLE

GROUP BY COLUMN;

OR, if you'd like:

SELECT COLUMN, Count(COLUMN) AS [COUNT OF CUSTOMER NUMBERS]

FROM TABLE

GROUP BY COLUMN;

3. Write the SQL to count how many authors have a last name that starts with S.

4. Find the sum of the cost line column

5. How many customers are in each state?

The "answer" is:

SM 4

SO 2

ST 4

SU 4

6. How many books on hand never ordered (the "answer" is 293)

7. Using the week 2 homework database, write the SQL that will show the average of the retail_price column in the books table

8. Write the SQL that will find the sum of the cost_line column in the table order_lines for customers who are in state "ST"

I guess we will need to do an inner join with tables customers and orders and order_lines to get the answer right?

Attachment:- WEEK2_ACCESS2000.zip

Reference no: EM13930447

Questions Cloud

C++ code for sum : C++ code for sum of integers
Consultant economist by the nt government : You have been employed as a Consultant Economist by the NT Government in particular the NT Police and NT Health Departments.
Understanding of economic concepts : Demonstrated understanding of economic concepts related to the chosen topic, application of those concepts to analyse the topic, and, where relevant, to synthesise a solution.
Electricity consumption mileage fee for car usage : A high-tech company, Robotic Vehicles Ltd., has hired you as a financial specialist to determine the financial consequences associated with investing in developing an autonomous car (self-driving) solution for traffic in the central areas of New Y..
Find the sum of the cost line column : Write the SQL to count how many authors have a last name that starts with S.
Concepts of technical and allocative efficiency : Describe the concepts of technical and allocative efficiency and the differences between them. How can technical and allocative efficiency in the provision of health services for chronic disease impact on patient welfare and health system overall.
Coefficient of friction between the band and the pipe : The coefficient of friction between the band and the pipe is 0.30, and that between the pipe and the block is 0.40. The weights of the parts are negligible.
C++ code to find the greatest common divisor : C++ Code to find the Greatest common divisor between two numbers.
Assume that the perpetual inventory system is used : A $3,000 payment for repairs was erroneously charged to the Cost of Goods Sold account.  Assume that the perpetual inventory system is used.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create mock level design for game

Write a 5-page "mock level design" in which you design a level for a game. The game is a shooter, the level is an old warehouse filled with zombies and demons with a boss at the end.

  Issues into account for collecting user data via forms

In addition to making our forms easy to use we need to consider user privacy and the use of data. What are some of the issues which you believe you require to take into account for collecting user data via forms?

  Recursive method to read in string of characters

Trying to write a recursive method that reads in a string of characters and checks to see if the first character is either a 'D' or and 'E', then is followed by a string of one or more 'F's.

  Design implement application displays button-label on screen

Design an implement an application that displays a button and a label on a screen. Every time the button is pushed, the label will display a random number.

  Program to use a stack to represent list of workers

Write a program to simulate this process. Use the following guidelines.- Use a stack to represent the list of workers. Use a queue to represent the list of people waiting to work.

  Write a method to store the product of the two arrays

Design an application that includes three arrays of type int. Allow the user to enter values into the first two.Write a method to store the product of the two arrays in the third array

  Write a program that reads data entered at run time

Write a program that reads data entered at run time consisting of positive integers and averages them -

  Estimate the storage space for telephone book

Estimate the storage space (number of bytes) required for each of the following items: A telephone book with 10,000 entries consisting of names, addresses and phone numbers. Use your phone book to estimate the average length of an entry.

  Explain relationship between xbrl and semantic web

How do HTML 5, RDF (Resource Description Framework), and OWL (Web Ontology Language) relate to the semantic web? Explain the relationship between XBRL and the semantic web.

  Find e(x) and var(x)

Suppose 0.4 of students are women and gpa for women has mean of 3 and sd 0.8; Gpa for men has mean of 2.5 and sd of 1.0. a sample size of 100 students which consist 40 women and 60 men.

  Programming language for a new point-of-sale system

You are the lead programmer for a new software project and have been assigned to choose the programming language for a new point-of-sale system

  Write a web application which will give report of balance

Write a web application which will provide a report of the balance held in the visitor's account during the past several months.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd