Previous Next

Task 3:  Build a data set for the customer report

In this procedure, you build a data set to indicate what data to retrieve from the Customers table. The customer report that you create later uses this data set.

1  
2  
Customers
Use the default values for the other fields.
n  
n  
3  
4  
In Query, in Available Items, expand CLASSICMODELS, then expand the Customers table. The columns in the Customers table appear.
5  
Use the following SQL SELECT statement to indicate what data to retrieve. You can type the column and table names, or you can drag them from Available Items to the appropriate location in the SELECT statement.
SELECT Customers.customerName,
Customers.customerNumber
FROM Customers
This statement that you created, which is shown in Figure 13-2, gets values from the CUSTOMERNAME and CUSTOMERNUMBER columns in the Customers table.

Figure 13-2 Query for Customers data set

Figure 13-2  Query for Customers data set
6  
7  
In Edit Data Set, choose Preview Results to confirm that the query returns the correct data. Figure 13-3 shows some of the data rows that the data set returns.

Figure 13-3 Data preview

Figure 13-3  Data preview
8  

(c) Copyright Actuate Corporation 2011