You can write expressions in conditions by using any of the following symbols:
See Appendix A, Query-by-Example for descriptions of these keywords.
If you use one of these operators, QMF displays an error message.
QMF evaluates operations at the same level of precedence from left to right.
You can change the order of evaluation with parentheses just as you would use them in a mathematical formula. For example, the following two expressions are equivalent:
A * - B / C + D / E ((A*(-B))/C) + (D/E)
When you create a table, each column in it holds a certain type of data.
QMF performs arithmetic operations only on numeric data types.
Do not enclose numeric data in quotation marks.
You need to enclose character data that is used in conditions in quotation marks only when:
Do NOT enclose values to compare with columns of numeric data in quotation marks.
When an operation in a query would produce a result outside an allowable range, the situation is called "arithmetic overflow". It is possible for the result of an arithmetic operation to be outside the range allowed for the data type of the result. For example, 1000000 is an allowable value in a column with data type INTEGER, but 1000000 * 1000000 cannot have the data type INTEGER. Also, division of any number by 0 produces an overflow.