Select
Select Syntax
[WITH CommonTableExpression (, CommonTableExpression)*] (Note: Only available starting with Hive 0.13.0)
SELECT [ALL | DISTINCT] select_expr, select_expr, ...
FROM table_reference
[WHERE where_condition]
[GROUP BY col_list]
[ORDER BY col_list]
[CLUSTER BY col_list
| [DISTRIBUTE BY col_list] [SORT BY col_list]
]
[LIMIT number]SELECT current_database()use database_name; select query_specifications; use default;
WHERE Clause
ALL and DISTINCT Clauses
Partition Based Queries
HAVING Clause
LIMIT Clause
REGEX Column Specification
Last updated
Was this helpful?