Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
hello i need to make a query where i have to insert some data.my problem is that the source of these data are of mixed origins.what i am trying to say is i need to enter explicit data which we insert using the "VALUES" command,and also some data from another table which we usually insert using "SELECT" and "WHERE" commands.how can these two sources of data be merged into a single query?please help
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/
webfred
Master Smack Fu Yak Hacker
8781 Posts
Posted - 2012-01-10 : 10:44:05
insert table(column_a, column_b, column_c)select'Myvalue',column2,column3from anotherTableNo, you're never too old to Yak'n'Roll if you're too young to die.
webfred
Master Smack Fu Yak Hacker
8781 Posts
Posted - 2012-01-10 : 10:44:27
No, you're never too old to Yak'n'Roll if you're too young to die.