If you are familiar with SQL queries, want to use other database queries besides the ones offered by your database server, or just want to create an ad-hoc query, you can choose the direct SQL dialog.
Creating an SQL statement Executing an SQL statement Saving an SQL statement Saving the results of the query Importing and exporting SQL Statements Entering several SQL Statements Setting parameters for SQL Statements