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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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