Tip: Dont use defaults or the shorthand notation when specifying join opera-
tors. In particular, dont just code the JOIN operator without one of the qualifiers
INNER or OUTER, dont use the shorthand keywords KEY and NATURAL, and
dont forget to code an ON condition for every join except CROSS JOIN. Be
clear and explicit with the join operators and the result will be easier to under-
stand and debug. The defaults and shorthand notation dont save much coding,
and the results can be confusing, especially with multi-table joins.
Table and view references in the FROM clause may contain hints that influence
how SQL Anywhere handles this particular table or view, for this particular
query:
<hints> ::= HOLDLOCK -- ISOLATION_LEVEL = 3
| WITH "(" [ <hint_list> ] ")"
<hint_list> ::= <hint> { <hint> }
<hint> ::= FASTFIRSTROW -- OPTIMIZATION_GOAL = 'first-row'
| NOLOCK -- ISOLATION_LEVEL = 0
| READUNCOMMITTED -- ISOLATION_LEVEL = 0
| READCOMMITTED -- ISOLATION_LEVEL = 1
| REPEATABLEREAD -- ISOLATION_LEVEL = 2
| HOLDLOCK -- ISOLATION_LEVEL = 3
| SERIALIZABLE -- ISOLATION_LEVEL = 3