Task 3:  
In this procedure, build a data set to indicate what data to retrieve from the OrderDetails and Products table.
1  
2  
SalesTotals
Use the default values for the other fields.
*
*
3  
4  
select Products.ProductLine,
sum(OrderDetails.QuantityOrdered * OrderDetails.PriceEach) as TotalPrice
from OrderDetails, Products
where products.productcode = orderdetails.productcode
group by products.productline
order by products.productline
This statement calculates the total sales amount for each product line.
5  
Choose Finish to save the data set. Edit Data Set displays the columns specified in the query, and provides options for editing the data set.
6  
Choose Preview Results. Figure 17-34 shows the data rows that the data set returns.
Figure 17-34  
7  

Additional Links:

Copyright Actuate Corporation 2012