Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following three tables in your working folder. Table name: OStaff Staff_ID First Name 5 Mary 6 Jessica Table name: OTransaction Transaction_ID 5

image

Consider the following three tables in your working folder. Table name: OStaff Staff_ID First Name 5 Mary 6 Jessica Table name: OTransaction Transaction_ID 5 7 8 Table name: Oproduct Product_ID Product_ID Product Type 2 Pastry 4 Pastry 6 Fruit 7 Drink quit; 2 4 7 Last Name Lau Moon Quantity 15 10 Product_name Cake Bread Mongo Coffee order by 2,1; 5 Price 10 9 8 Answer the following two subquestions: (a) (5 marks) State what the following query intends to achieve. (b) (30 marks) Without using SAS EG, show the result table of the following query. proc sql number; select first name, product_name, 'Attributed Sale' format=dollar4.1 20 t.quantity*p.price/count (distinct s.staff_ID) FOTW from OPRODUCT as p INE inner join otransaction as t on p.product_ID=t.product_ID, orion.ostaff s orion

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

Elementary Statistics

Authors: Neil A. Weiss

8th Edition

321691237, 978-0321691231

More Books

Students also viewed these Databases questions

Question

Sketch the graph of the function. y = e -x/2

Answered: 1 week ago

Question

How to Calculate the Regression Line

Answered: 1 week ago