Queries and reports

Create and run queries using various methods, including SQL, the OPNQRYF command, the i5/OS™ Create Query API (QQQQRY), ODBC, and Query for iSeries™.

One of the most common tasks that you perform with your database is to retrieve information. iSeries servers provide several methods to create and run queries and reports.

You can use an SQL statement to retrieve information. This SQL statement is called a query. The query searches the tables stored in your database to find the answer to the question that you posed with your SQL statement. The answer is expressed as a set of rows, which is referred to as the result set. After a query has been run, you can also create a report to display the data provided in your result set. For detailed information about creating SQL statements, see the SQL programming topic.

In addition to using SQL, you can use other functions and products to create and run queries and reports. See the following manuals for detailed information.

In addition, the iSeries Navigator interface provides SQL Assist, which can be used to create SQL statements. SQL Assist helps you to build SQL Select, Insert, Update, and Delete statements. See Build SQL statements with SQL Assist for more information.

Related concepts
Build SQL statements with SQL Assist
SQL programming