|
SQL Reference |
SELECT Statement |
FROM
|
FROM ClauseInner Joins - Join occurs in the where clause Outer Joins - Left Outer Join, Right Outer Join
Single TableSELECT * FROM CUSTOMERS
Multiple Tables (Joins)Join columns must have matching data types and lengths. SELECT company, order_number FROM CUSTOMERS, ORDERS ...
Inner JoinsTables are joined in the WHERE clause. The join predicate is 'AND'ed to other WHERE criteria predicates. SELECT company, order_number, status FROM customers, orders
WHERE
Outer JoinsOuter joins prevent the exclusion of records in one table that do not have records in the joined table. SELECT company, order_number, status FROM customers c LEFT
JOIN orders o ON SELECT company, order_number, status FROM customers c LEFT
OUTER JOIN
SELECT company, order_number, status FROM customers c RIGHT
JOIN orders o ON SELECT company, order_number, status FROM customers c RIGHT
OUTER JOIN
Nested Selectsselect company, contact, state from customers c,
|
|
APIs | SQL Reference | Stored Procedures | Third Party Tools | Debugging |
OmniAccess API |
ODBC |
JDBC |
Nested Queries |
SET Operations |
WITH Options |
CURSOR / INSTANCE |
Commands |
Functions |
SQL Server |
Oracle |
MS Access |
Ms Excel |