Something about DataStage, DataStage Administration, Job Designing,Developing, DataStage troubleshooting, DataStage Installation & Configuration, ETL, DataWareHousing, DB2, Teradata, Oracle and Scripting.
Showing posts with label statement. Show all posts
Showing posts with label statement. Show all posts
Tuesday, May 19, 2015
SQL Assignment08 - Delete Statement
1. Delete from customers.
2. Delete depositor of branches having number of customers between 1 and 3.
3. Delete branches havinng average deposit less than 5000.
4. Delete branches having maximum loan more than 5000.
5. Delete branches having deposit from Nagpur.
Thursday, May 14, 2015
SQL Assignment07 - Update Statement
1. Give 10% interest to all depositors.
2. give 10% interest to all depositors having branch VRCE
3. Give 10% interest to all depositors living in city Nagpur.
4. Give 10% interest to all depositors having branch in city BOMBAY and living in Nagpur.
5. Add 100 Rs to deposit of Anil and assign it to Sunil.
6. Change the deposit of VRCE branch to 1000 and change the branch as VRCE_UPT
7. Assign to the deposit of Anil the maximum deposit from VRCE branch
Tuesday, July 29, 2014
Oracle SQL Tuning Tips - 1
Consideration
when writing an SQL statement is that it returns a correct result.
The second is that it be the most efficient for a given situation.
You can use many different SQL statements to achieve the same
result. It is often the case that only one statement will be the most
efficient choice in a given situation.
Remember
that processing SQL is a sequence of Parse (syntax check and object
resolution), Execution (required reads and writes), and Fetch (row
results retrieved, listed, sorted, and returned). SQL “tuning”
consists, quite simply, of reducing one or more of them.
Note:
generally Parse is the greatest time and resource hog. Parse overhead
can be minimized by the use of Procedures, Functions, Packages,
Views, etc.
Subscribe to:
Posts
(
Atom
)