Something about DataStage, DataStage Administration, Job Designing,Developing, DataStage troubleshooting, DataStage Installation & Configuration, ETL, DataWareHousing, DB2, Teradata, Oracle and Scripting.
Showing posts with label Practices. Show all posts
Showing posts with label Practices. 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
Monday, May 11, 2015
SQL Assignment06 - Group By or Having Clause
1. List the branches having sum of deposit more than 5000.
2. List the branches having a sum of deposit more than 5000 and located in city BOMBAY.
3. List the name of Customers having deposit in the branches where the average deposit is more than 5000.
4. List the names of customers having maximum deposit.
5. List the names of customers having maximum deposit in the table CUSTOMERS living in Nagpur.
6. List the name of branch having highest number of depositors.
7. Count the number of depositors living in Nagpur.
Thursday, May 07, 2015
SQL Assignment05 - Aggregate Functions
1. List total loan.
2. List total deposit.
3. List total loan taken from KAROLBAGH branch.
4. List total deposit of customers having account date later than 1-Jan-96.
5. List total deposit of customers living in city Nagpur.
6. List maximum deposit of customers living in BOMBAY.
7. List total deposit of customers having branch city DELHI
Tuesday, May 05, 2015
SQL Assignment04 - Operations
1. List all the customers who are depositors but not borrowers.
2. List all the customers who are both depositors and borrowers.
3. List all the customers, their amount, who are either depositors or borrowers and living in city Nagpur.
4. List all the depositors having deposit in all the branches where Sunil is having account.
5. List all the customers living in city Nagpur and having branch city BOMBAY or DELHI.
Monday, May 04, 2015
SQL Assignment03 - Join or Cartesian Product
Some more queries on SQL to work on --
1. Give names of customers having living city BOMBAY and branch city Nagpur.
2. Give Names of Customers having the same living city as their branch city.
3. Give names of customers who are borrowers as well as depositors and having living city as Nagpur.
4. Give names of customers who are depositors and having the same branch city as that of Sunil.
5. Give names of depositors having the same living city as that if Anil and having deposit amount greater than 2000.
Thursday, April 30, 2015
SQL Assignment02 - Select Statement
Now, As we created some tables with data, lets do some practice with basic SQLs, Try to write queries for below statements -
-- List all data from table DEPOSIT
-- List all data from table BORROW
-- List all data from table CUSTOMERS
-- List all data from table BRANCH
Sunday, April 26, 2015
SQL Assignment01 - Creating tables
Hello Guys, As we all know that SQL is "must" known for getting into DWH area, So considering this what I am trying to do here is sharing some basic SQL assignments to complete. Start with me if wanna to test your SQL knowledge :-)
First of all, we will create some tables ( Script may need to change as per DB you are using ) -
Friday, April 25, 2014
SQL Best Practices - Part1
Never put SQL scalar functions on columns in the WHERE predicates.
For example: WHERE YEAR(HIREDATE) = 2009 should be recoded as WHERE HIREDATE BETWEEN '2009-01-01'and '2009-12-31'.
When placing SQL scalar functions on columns in the SELECT portion of the SQL statement does incur some minimal overhead, but applying it to a column in the WHERE clause causes the predicate to become stage to non indexable.
Same applies for mathematics.
For example: WHERE HIREDATE – 7 DAYS > :HV-DATE should be recoded as WHERE HIREDATE > :HV_DATE + 7 days. Having the mathematics on the host variable is not a problem.
Wednesday, November 21, 2012
DataStage Documentation Best Practices - 2
Introduction
This document contains the Data Stage Best practises and recommendations which could be used to improve the quality of data stage jobs. This document would further be enhanced to include the specific Data Stage problems and there troubleshooting.
Recommendations
Saturday, October 13, 2012
Using Configuration Files in Data Stage Best Practices & Performance Tuning
The configuration file
tells DataStage Enterprise Edition how to exploit underlying system resources
(processing, temporary storage, and dataset storage). In more advanced
environments, the configuration file can also define other resources such as
databases and buffer storage. At runtime, EE first reads the configuration file
to determine what system resources are allocated to it, and then distributes
the job flow across these resources.
When you modify the system, by adding or removing nodes or disks,
you must modify the DataStage EE configuration file accordingly. Since EE reads
the configuration file every time it runs a job, it automatically scales the
application to fit the system without having to alter the job design.
Labels:
Administration
,
application
,
Configuration
,
DataStage
,
Logical
,
Optimizing
,
Parallelism
,
Practices
,
Resource
,
Scratch
Wednesday, October 10, 2012
Environment Variable for Data Stage Best Practices and Performance Tuning
DataStage provides a number of
environment variables to control how jobs operate on a UNIX system. In
addition to providing required information, environment variables can be used
to enable or disable various DataStage features, and to tune performance
settings.
Data Stage Environment Variable Settings for All Jobs
Labels:
Administration
,
application
,
DataSet
,
DataStage
,
environment
,
Practices
,
Seq File
,
Setting
,
variables
Saturday, July 28, 2012
DataStage Documentation Best Practices
Introduction
This document
contains the Data Stage Best practises and recommendations which could be used
to improve the quality of data stage jobs. This document would further be
enhanced to include the specific Data Stage problems and there troubleshooting.
Recommendations
Subscribe to:
Posts
(
Atom
)