> ### 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 | In Data Explorer, right-click Data Sets, and choose New Data Set.

> 2 | In New Data Set, type the following text for data set name:

> Customers
> Use the default values for the other fields.

> | 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.

> 3 | Choose Next.

> 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 12-2, gets values from the CUSTOMERNAME and CUSTOMERNUMBER columns in the Customers table.

> Figure 12-2 Query for Customers data set

> 6 | Choose Finish to save the data set.

> 7 | In Edit Data Set, choose Preview Results to confirm that the query returns the correct data. Figure 12-3 shows some of the data rows that the data set returns.

> Figure 12-3 Data preview

> 8 | Choose OK to save the data set.

(c) Copyright Actuate Corporation 2013