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.
Data Source Selection shows the name of the data source that you created earlier.
Data Set Type specifies that the data set uses a SQL SELECT query to retrieve the data.
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.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
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
(c) Copyright Actuate Corporation 2012 |