How to insert multiple rows with a subquery?
Answer / Sukeerti Suresh
To insert multiple rows using a subquery in SQL Server, you can use the INSERT INTO SELECT statement. For example: INSERT INTO your_table (column1, column2) SELECT column1, column2 FROM other_table WHERE condition.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the role that is required for killing a process What is the role that is required for creating a linked server
1 Answers CarrizalSoft Technologies, IBM,
Can you please explain the difference between function and stored procedure?
How can you start sql server in different modes?
What is the command used to recompile the stored procedure at run time?
What is SQL Server?
What stored by the model? : sql server database administration
In what sequence sql statement is processed?
Suppose i have one sql query that contains 2 minute to execute.After one weekly i am executing same query that is taking 5 minute.Why our same query is taking more time.what would be my approach to reduce execution time.Please help.
1 Answers Cognizant, HCL, Value Labs,
what is the difference between procedure and function.
explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration
Explain concepts of analysis services?
Explain the dbcc pintable command when would you use it?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)