Creating Tables From Queries

time to read 1 min | 78 words

Did you know that you can create a table from a query?

It's done using the SELECT INTO syntax, and it can be quite useful for creating a table for temporary calculations. What surprised me was that you can get this to create a permenant table as well. Obviously that isn't recommended (I hope you put a little thought into your tables before you create them), but it's useful to have for DBA scenarios.