Answer Posted / charles
which I must declare after read is , some times we can not
use other methods to replace cursor ,it's flexiblity is
beyond compare to Loop structure.
But,still,your good advice is very good! Thank you
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is an active database?
What is cached report?
Explain what are the database objects? : SQL Server Architecture
What is analysis service repository?
What are the steps to insert a table?
Difference between connected and disconnected database in .net with sql server?
Ms sql server index?
What is snapshot report?
Can we shrink data file in sql server?
Can a unique index be created on a column, which contains null?
What do you mean by subquery?
How to use clusters?
While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?
How to add additional conditions in SQL?
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?