CREATE TABLE AS
The optional clause causes the error to be suppressed if the table already exists.
Create a new table orders_column_aliased
with the results of a query and the given column names:
COMMENT 'Summary of orders by date'
WITH (format = 'ORC')
AS
FROM orders
Create the table orders_by_date
if it does not already exist:
CREATE TABLE empty_nation AS
SELECT *
WITH NO DATA