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?
2540Consider 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 10063hi. suppose one person goal is strong knowledge on SQL.... suggest me ...if he learns SQL SERVER or ORACLE? which is best?
7 14520What is the difference between Temporary table variable and a Table variable? Or Which Table variable I should use inside Stored procedure?
3 84852) 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 5068Post New TCS SQL Server Interview Questions
Tell me what is laravel eloquent?
what are the three groups involved in information sharing?
What are the function of different capacitor, resistors, transister, diods, thyrister( like SCR)in any circuit?
What is the first part of an if then statement?
explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?
What are the negative test cases for water bottle?
What is a binder service in Android abd how it differs from started service?
How to get a list of columns in a view using the "sp_columns" stored procedure?
What is synchronous request in ajax?
What is angular and why use it?
List the advantages that web services have over com (component object model)and dcom (distributed component object model)?
kailan po ba lumalaki at lumiliit ang tubig sa dagat?at saan naman ito kumukuha ng tubig para lalaki ang tubig?
Explain is it the job of a business analyst or systems analyst to draw the class diagram?
What Programming languages does Android support for application development?
How would you adapt a pre-trained model to a domain-specific task?