Use the
Premiere Products tables in Figure 2.1 to answer these questions.For the first two questions just write out your answers in your Word document.
For the next three questions, indicate how to use relational algebra to obtain the desired result.
Here's an example of what I'm looking for as answers to 3, 4, and 5.
Example:
List the order number, order date, customer number, and customer name for each order placed by any customer
represented by the sales
rep whose last name is Kaiser.
Answer:
JOIN Orders Customer WHERE Orders.CustomerNum = Customer.CustomerNum
GIVING Temp1
JOIN Temp1 Rep WHERE Temp1.RepNum = Rep.RepNum GIVING Temp2
SELECT Temp2 WHERE Rep.LastName = "Kaiser" GIVING Temp3
PROJECT Temp3 OVER (OrderNum, OrderDate, CustomerNum, CustomerName)
GIVING Answer
For another example, see Using the JOIN operator