How can you get @@error and @@rowcount at the same time?
Answer Posted / gunasekaran k.j
SELECT @@Rowcount as rwCount, @@Error as Er
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What functions can a view be used to performed?
How to define output parameters in stored procedures?
Explain how dts is used to extract, transform and consolidate data?
How much space does sql server 2016 take?
What is the syntax to execute the sys.dm_db_missing_index_details?
What is the recovery model?
What is the importance of concurrency control?
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?
Do comments need to go in a special place in sql server 2005?
What are the authentication modes in sql server? How can it be changed?
What is the order in which the sql query is executed?
What is indexing in sql server with example?
Tell me what is a linked server?
What is cte (common table expression)?
what is a deadlock? : Sql server database administration