Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More SQL Server Interview Questions

How many levels of sp nesting is possible?

0 Answers  


how many type of subquery?

2 Answers  


What are the restrictions while creating batches in sql server?

0 Answers  


Can an automatic recovery be initiated by a user?

0 Answers  


What are the general features of sql server management studio? : sql server management studio

0 Answers  






What do you understand by integration services in sql server?

0 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?

0 Answers   TCS,


how to get max salary with employee number by using one select query and max function ??

3 Answers   Genpact,


What's the difference between DELETE TABLE and TRUNCATE TABLE commands?

9 Answers  


In which situation you use Self joins?

1 Answers   CarrizalSoft Technologies, HP, TCS,


How to use linked server?

0 Answers  


What is the contrast between sql and mysql?

0 Answers  


Categories