Question: 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

Consider the following three tables in your working folder. Table name: OStaff

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!