How to remove duplicate rows from table except one?
1070
If a cursor is open, how can we find in a pl/sql block?
1225
How to start an oracle instance?
1086
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?
2545
What is clustered index
1069
how to escape special characters in sql statements? : Sql dba
1097
What are the pros and cons of putting a scalar function in a queries select list or in the where clause?
1277
What is a concurrency problem in dbms?
1035
What is the difference between case version and decode version?
1091
Have you written applications to retrieve stored images in a table?
1071
Is there some bulk load or other way to import a lot of data fast?
923
Can we rollback truncate?
1058
What is self contained sub query?
1130
Design database draw er diagram for a certain scenario ?
4635
Who proposed the relational model?
1023