This may sound kind of hair-brained. If so, please forgive me. But I can't have too many hair-brained ideas, really, seeing as I don't have much hair to begin with. ![[wink] [wink] [wink]](/data/assets/smilies/wink.gif)
I am wanting to know what would be the correct/best syntax to use when I want to query existing data from other tables/views, and add certain columns from those tables/views into an "mytable", and include the data that matches the records in "mytable."
I saw the ALTER command for adding columns, but is that the only way to go about this? Is there some way I can have SQL figure out the correct column attributes, other than name, from the source tables?
Can an "INSERT INTO" statement perhaps work in this way?
Thanks for any thoughts/suggestions/examples.
--
"If to err is human, then I must be some kind of human!" -Me
![[wink] [wink] [wink]](/data/assets/smilies/wink.gif)
I am wanting to know what would be the correct/best syntax to use when I want to query existing data from other tables/views, and add certain columns from those tables/views into an "mytable", and include the data that matches the records in "mytable."
I saw the ALTER command for adding columns, but is that the only way to go about this? Is there some way I can have SQL figure out the correct column attributes, other than name, from the source tables?
Can an "INSERT INTO" statement perhaps work in this way?
Thanks for any thoughts/suggestions/examples.
--
"If to err is human, then I must be some kind of human!" -Me