My DBMS is MSSQL:
I would like to create a table based on my query results, I don't know how to do it, any help is appreciated.
SELECT Col_A, Col_B, Col_C
FROM myTbl
WHERE someCriteria = unimportant
CREATE TABLE myNewTbl(
newCol_A int,
newCol_B int,
newCol_C int
)
With the query results going into the respective new columns in the new table.
Suggestions? ----------------------------------------
Is George Lucas Kidding...
I would like to create a table based on my query results, I don't know how to do it, any help is appreciated.
SELECT Col_A, Col_B, Col_C
FROM myTbl
WHERE someCriteria = unimportant
CREATE TABLE myNewTbl(
newCol_A int,
newCol_B int,
newCol_C int
)
With the query results going into the respective new columns in the new table.
Suggestions? ----------------------------------------
Is George Lucas Kidding...