Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL Design a query to select a simple random sample of 1,000 transactions from the 120 million rows of the TRNSACT table. Specifically obtain data

SQL Design a query to select a simple random sample of 1,000 transactions from the 120 million rows of the TRNSACT table. Specifically obtain data for the variables QUANTITY, ORGPRICE (original price), SPRICE (selling price) and AMT (QUANT * SPRICE).

One thing to understand about these transactions: There are two STYPEs, P and R. P is a purchase and R is a return. For the purpose of this query, lets restrict the sample to purchases only

Paste your SQL code here

Next, in the Answer Set tab, find the disk icon to save the query table as a Comma Separated Values (csv) format file. Then open that file in Excel and compute the mean of each column. Report your column means. Comment on the comparison among the four averages. What conclusions can you draw based on the means from your sample?

Type your response (including report of sample means)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

=+1. Work in teams of four or five.

Answered: 1 week ago

Question

Explain the importance of Human Resource Management

Answered: 1 week ago

Question

Discuss the scope of Human Resource Management

Answered: 1 week ago

Question

Discuss the different types of leadership

Answered: 1 week ago

Question

Write a note on Organisation manuals

Answered: 1 week ago

Question

Define Scientific Management

Answered: 1 week ago