Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem1(=Chapter26Problem1fromCody) UsePROCSQLto list all the observations from data set Inventory where Price is greater than 20. Problem2(=Chapter26Problem2fromCody) Repeat Problem 1 (from Cody book which is

Problem1"(=Chapter26Problem1fromCody)"

UsePROCSQLto list all the observations from data set Inventory where Price is greater than 20.

Problem2"(=Chapter26Problem2fromCody)"

Repeat Problem 1 (from Cody book which is the same to Problem 1 above), except use PROC SQLtocreateanew,temporarySASdataset(Price20)containingallobservationsfromInven- tory where the Price is greater than 20.

Problem3"(=Chapter26Problem3fromCody)"

UsePROCSQLtocreateanew,temporary,SASdataset(NSales)containingtheobservations fromSaleswhereRegionhasavalueofNorth. IncludeonlythevariablesNameandTotalSales in the new data set.

Problem4"(=Chapter26Problem6fromCody)"

WritethenecessaryPROCSQLstatementstoaccomplishthesamegoalastheprogramhere:

dataallproducts;

setlearn.inventorylearn.newproducts; run;

Don't forget that you need to make PROCSQLto create a dataset with the same name as above.

Problem5"(=Chapter26Problem7fromCody)"

WritethenecessaryPROCSQLstatementstoaccomplishthesamegoalastheprogramhere:

datathird;

setlearn.firstlearn.second; run;

Be careful!The order of the variables is not the same in both data sets.Also, some subject numbers are in both data sets.Don't forget that you need to make PROCSQLto create a dataset with the same name as above.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Sure here are the PROC SQL statements for each problem List all observations where Price is greater ... 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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

What is recovery?

Answered: 1 week ago