Accessing Data : Accessing database data using the query builder
 
Accessing database data using the query builder
BIRT Report Designer supports connecting to many relational databases, such as Oracle, Sybase, Informix, DB2, SQL Server, and Derby, through database-specific JDBC drivers. You must download and install the appropriate JDBC drivers.
BIRT Report Designer provides a query editor for typing the SQL statement to specify the data to retrieve. In addition, BIRT Report Designer includes a SQL query builder that you can use to create SQL statements graphically. The query builder provides two advantages over the query editor:
*The ability to create and edit SQL statements quickly without typing SQL code. This feature is particularly useful when creating multiple joins, using SQL functions, or writing complex expressions.
*The ability for BIRT to modify a SQL query when you sort, group, or filter data using the graphical tools. BIRT maps these user-interface actions to the equivalent SQL expressions, and because the database processes the data, the report’s performance improves.
This chapter describes how to access database data using the query builder. For information about using the query editor, see “Accessing database data using a textual query,” later in this section.
As with other types of data sources, for a report to retrieve data from a database using the query builder, you must create the following BIRT objects:
*A data source that contains the information to connect to the database
*A data set that specifies the data to retrieve from the database