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.
Hi I want to insert a calculated values of data into another table.I'm getting an syntax error.My query isInsert into table1(Rollno,Marks) value(select Rollno,sum(Marks) from table2 group by Rollno)Please help me
vijayisonly
Master Smack Fu Yak Hacker
1836 Posts
Posted - 2010-06-17 : 13:35:06
Its just
Insert into table1(Rollno,Marks)select Rollno,sum(Marks) from table2 group by Rollno