adspace
Answer Posted / Anil Kumar Kumar
{"create_stored_procedure": [n {"name": "sp_MyStoredProcedure", "parameters": [n {"parameter_name": "@param1", "data_type": "int", "is_input": true}, n {"parameter_name": "@param2", "data_type": "varchar(50)", "is_output": true}n ]}, n {"sql_statement": "CREATE PROCEDURE sp_MyStoredProcedure @param1 int, @param2 varchar(50) AS SELECT Column1, Column2 FROM Table_Name WHERE Column3 = @param1"}n]}
| 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?
Does view occupy space?
What are the source of constraints?
Why we use the openxml clause?
What is the difference between for xml raw and for xml auto?
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
What are the different types of subquery?
do you know how to configure db2 side of the application? : Sql server database administration
List out the different types of locks available in sql server?
How do I find the sql server version?
Why and when do stored procedure recompile?
How to remove duplicate rows from table except one?
what is the Ticketing tool used in Wipro technologies at Bangalore...???
How do I find query history in sql server?
What is an indexed view?