.. _select: Data Retrieval ============== Query data from already created tables. The ``SELECT`` call follows mostly the standard SQL conventions, including all typical ingredients (such as ``WHERE``, ``GROUP BY``, ``ORDER BY`` etc.). .. raw:: html
SELECT [ ALL | DISTINCT ]
* | <expression> [ [ AS ] <alias> ] [ , ... ]
[ FROM <from> [ , ... ] ]
[ WHERE <filter-condition> ]
[ GROUP BY <group-by> ]
[ HAVING <having-condition> ]
[ UNION [ ALL | DISTINCT ] <select> ]
[ ORDER BY <order-by> [ ASC | DESC ] [ , ... ] ]
[ LIMIT <end> ]
[ OFFSET <start> ]