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?
2434Consider a table with 8 rows 4 rows contains value 0 and 4 rows contains value 1.Now write a single update query to make all 0's as 1 and all 1's as 0
7 9581hi. suppose one person goal is strong knowledge on SQL.... suggest me ...if he learns SQL SERVER or ORACLE? which is best?
7 13993What is the difference between Temporary table variable and a Table variable? Or Which Table variable I should use inside Stored procedure?
3 82462) Consider a Table name A which has below records ID --- 5 5 5 5 5 Consider another table B which has below records ID -- 5 5 5 5 5 5 5 5 How many rows will be returned by each of the below queries a) select * from A inner join B on A.id = b.ID b) select * from A left join B on A.id = b.ID c) select * from A right join B on A.id = b.ID
2 4833Post New TCS SQL Server Interview Questions
Is apache still used?
What is the max. No. Of structures that can be included in a table or structure? : abap data dictionary
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik
Hi any one can help in preparing for BHEL ET exam in mechanical stream? I like to know the the question paper pattern fro the same. regards, Jose 9841327666 josevinoth@yahoo.com
How do I run exe files on windows 7?
If we are not returning any records from the database, which method is to be used?
Can we execute a Talend Job remotely?
What is private class in c#?
What is the importance of table t000?
In sap what is the use of fsv ( financial statement version) ?
Can you use excel as a database?
How to execute a stored procedure with TIBSQL?
Tell us about your usual day.
Explain the different types of mysql joins.
How do I uninstall visual c++?