Entering Search Values

See Also      Tasks

This topic discusses the conventions you must use when entering the following types of literal values for a search condition:

Note   The information in this topic is derived from the rules for standard SQL-92. However, each database can implement SQL in its own way. Therefore, the guidelines provided here might not apply in every case. If you have questions about how to enter search values for a particular database, refer to the documentation for the database that you are using.

Searching on Text Values

The following guidelines apply when you enter text values in search conditions:

Searching on Numeric Values

The following guidelines apply when you enter numeric values in search conditions:

Note   For details about entering currency values in SQL Server, see Query Designer Considerations for SQL Server Databases.

Searching on Dates

The format you use to enter dates depends on the database you are using and in what pane of the Query Designer you are entering the date. The Query Designer can work with the following date formats:

Note   For details about working with dates in Oracle, see Query Designer Considerations for Oracle Databases.

The following table summarizes the date format that you can use in different panes of the Query Results.

Pane Date format
Grid Locale-specific
Database-specific
ANSI standard

Dates entered in the Grid pane are converted to a database-compatible format in the SQL pane.

SQL Database-specific
ANSI standard

Dates entered into the SQL pane are converted to the locale-specific format in the Grid pane.

Results Locale-specific

Searching on Logical Values

The format of logical data varies from database to database. Very frequently, a value of False is stored as zero (0). A value of True is most frequently stored as 1 and occasionally as -1. The following guidelines apply when you enter logical values in search conditions: