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

  This is a programming assignment and it needs you to write

this is a programming assignment and it requires you to write the pseudocode for a program that solves the following

  Write statement to determine whether array elements are full

Write the statements needed to determine whether any of the the array elements are null or refer to the empty String. Set the variable hasEmpty to true if any elements are null or empty-- otherwise set it to false.

  Prolog program to reads employee-s number

Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Draw flowchart or write psuedocode to represent logic

Draw a flowchart or write psuedocode to represent the logic of a program that alllows the user to enter three values . The values rpesent hourly pay rate.

  Write program that uses recursive function to count number

Write a program that uses a recursive function to count the number of blobs in a square grid. Input to the program should consist of the locations of the asterisk in the grid.

  When the program starts the user is asked to seed the

write a program that lets the user play the game of rock paper scissors against the computer. the program should work

  Why is each criterion important to a program

When reviewing a program, these are the four criteria for style: Why is each criterion important to a program

  Create logic for application for user for order information

Create the logic for an application that continuously prompts a user for order information until the user enters "ZZZ" for the customer name or 10 orders.

  Arithmetic and application of summaries

Write some R code that carries out computation, but do it with a single R expression that contains no commas (,) and no braces ({}).

  Write a machine-language program

Write a machine-language program to input two one-digit numbers add them, and output the one-digit sum. Write it in a format suitable for the loader and execute it on the Pep/8 simulator.

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Program to allot new value to first element of array

Write the single statement which assigns new value to first element of array. This new value must be equal to twice value stored in the last element of the array.

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