If there exist a index on the table, and we then make a
view on that table (include the indexed column from base
table) than why do we require indexing on view?Doesnt it
create an overhead?
Answer Posted / rama krishna
it depends on search critiria for view
Is This Answer Correct ? | 0 Yes | 3 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?
What is the difference between primary key and unique constraints?
what is dbcc? : Sql server database administration
What are the types of indexes?
What is the purpose of indexing?
What is the full form of ddl?
what is a mixed extent? : Sql server administration
Tell me what is normalization? Explain different forms of normalization?
can you instantiate a com object by using t-sql? : Sql server database administration
Why do you want to join software field as you have done your BE in Electronics?
John exports information periodically from a microsoft sql server database to an oracle database what is the best way to do this?
Where can you add custom error messages to sql server?
How to filter out duplications in the returning rows in ms sql server?
Explain about Joins?
What are the steps you can take to avoid “deadlocks”?