adspace
How to insert multiple rows with one insert statement in ms sql server?
Answer Posted / Reeta Verma
In MS SQL Server, you can use the INSERT INTO statement with VALUES and multiple comma-separated tuples to insert multiple rows: INSERT INTO table_name (column1, colum
2...) VALUES (values1), (values2), ...; Each tuple corresponds to a row in the table.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?
What is clustered index
How raid can influence database performance?
Why should you use or avoid select * statements?
What is in place upgrade in sql server?
Can we shrink data file in sql server?
What is subquery? Explain the properties of a subquery?
What are the different subsets of sql?
If any stored procedure is encrypted, then can we see its definition in activity monitor?
How do I start sql server 2017?
What are the kinds of subquery?
When should you use an instead of trigger?
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
What is a view in sql?
What is the difference between upgrade and migration in sql server?