I'm trying to move a select statement's result into a new non-existent table but not able to figure how.
In MS SQL, I would be following the below,
SELECT * INTO <NON_EXISTING_TABLE> FROM
(
SELECT * FROM TABLE1 A
JOIN TABLE2 B
ON A.DescriptionNo = B.DescriptionNo
WHERE A.DescriptionNo =1) A
When i quickly looked it up , I can see only answers to insert data into an existing table but not dynamically create a new table with the result of the statement.
Please advice !