Sie sind auf Seite 1von 3

1. Select both CustomerNum and CustomerName fields from the Customer table, and click Run. 2.

Select all fields from the Part table and click Run. 3. Select the fields CustomerNum and CustomerName from the Customer table. Selec t the field RepNum as well, but remove the "Show" checkmark. Under "criteria" fo r the field RepNum, input "35". Click Run. 4. Select the fields CustomerNum, CustomerName, RepNum and CreditLimit from the Customer table, then remove the "Show" checkmarks from the RepNum and CreditLimi t columns. Under "criteria", unput "35" for RepNum and "10,000" for CreditLimit. Click Run. 5. Select the fields CustomerNum, CustomerName, RepNum and CreditLimit from the Customer table, then remove the "Show" checkmarks from the RepNum and CreditLimi t columns. Under "criteria", input "35" for RepNum; under "or", input "10,000" f or CreditLimit. Click Run. 6. Select the fields OrderNum, OrderDate, and CustomerNum from the Orders table, and CustomerName from the Customer table. Click Run. 7. Select the fields CustomerNum, CustomerName and RepNum from the Customer tabl e, and remove the "Show" checkmark from the RepNum column. Under "criteria", inp ut "65" for Repnum; click Run. 8. Select the fields CustomerNum and CreditLimit from the Customer table. Rightclick on the lower table and select "Totals" to add the Total row; select "Count " under the CustomerNum column, and "Where" under the CreditLimit column. Under "Criteria", input "10,000" for CreditLimit. Click Run. 9. Select the fields Balance and RepNum from the Customer table. Right-click on the lower table and select "Totals" to add the Total row; select "Sum" under the Balance column, and "Where" under the repNum column. Under "Criteria", input "3 5" for Repnum. Click Run. 10. Select the fields PartNum and Description from the Parts table. Select the C lass field from the same table, and input "HW" as the criteria. Right-click on a new, blank field column, and select "Zoom" to open the Zoom pop-up window. Inpu t the expression "OnHandPrice:OnHand*Price". Click Run. 11. Select all the fields in the Part table. On the "sort" row, select "ascendin g" under the Description column. Click Run. 12. Select all the fields in the Part table. On the "sort" row, select "ascendin g" under the PartNum and Class columns. Make sure the Class column is to the lef t of the PartNum column. Click Run. 13. Select the Class field in the Part table; under the sort column, select "asc ending". Input "OnHandPrice:OnHand*Price" as a new field. Click Run. 14. Select the fields PartNum, Description, OnHand, warehouse, and Price in the Part table. Select the Class field as well, but uncheck the show checkmark, and under criteria, input "SG". Click Make Table. type the title "SportingGoods" int o the space given by the pop-up window. Click ok, and click run. 15. Select the fields PartNum and description from the SportingGoods table. Cli ck the Update button above, under the Query Type box of the Design tab. Under "U pdate To", input "Fitness Gym" under Description. Under "Criteria", input "BV06" under PartNum. Click Run.

16. Select the Price field from the SportingGoods table. Click the delete button above, under the Query Type box of the Design tab. Under Criteria, input ">1000 ". Click Run. PPE: RA 1. PROJECT Rep OVER (RepNum, LastName, FirstName) GIVING Answer 2. SELECT Part WHERE PartNum=FD21 GIVING Answer 3. JOIN Orders Customer WHERE Customer.CustomerNum=Orders.CustomerNum GIVING Temp PROJECT Temp OVER (OrderNum, OrderDate, CustomerNum, CustomerName GIVING Answer 4. JOIN Orders, Customer, Rep WHERE Customer.CustomerNum=Orders.CustomerNum WHERE Customer.RepNum=Rep.RepNum GIVING Temp1 SELECT Temp1 WHERE LastName=Kaiser GIVING Temp2 PROJECT Temp2 OVER (OrderNum, OrderDate, CustomerNum, CustomerName) GIVING Answer 5. JOIN Orders, Customer WHERE Orders.CustomerNum=Customer.CustomerNum GIVING Temp1 SELECT Temp1 WHERE OrderDate= 10/20/2013 GIVING Temp2 SELECT Temp1 WHERE RepNum= 20 GIVING Temp3 UNION Temp2 WITH Temp3 GIVING Temp4 PROJECT Temp4 OVER OrderNum, OrderDate GIVING Answer 6. JOIN Orders, Customer WHERE Orders.CustomerNum=Customer.CustomerNum GIVING Temp1 SELECT Temp1 WHERE OrderDate= 10/20/2013 GIVING Temp2 PROJECT Temp2 OVER OrderNum, OrderDate GIVING Temp3 SELECT Temp1 WHERE RepNum= 20 GIVING Temp4 PROJECT Temp4 OVER OrderNum, OrderDate GIVING Temp5 INTERSECT Temp3 WITH Temp5 GIVING Answer 7. JOIN Orders, Customer WHERE Orders.CustomerNum=Customer.CustomerNum GIVING Temp1 SELECT Temp1 WHERE OrderDate= 10/20/2013 GIVING Temp2 PROJECT Temp2 OVER OrderNum, OrderDate GIVING Temp3 SELECT Temp1 WHERE RepNum= 20

GIVING Temp4 PROJECT Temp4 OVER OrderNum, OrderDate GIVING Temp5 SUBTRACT Temp5 FROM Temp3 GIVING Answer

Das könnte Ihnen auch gefallen