eno ename
1 qaz
1 wsx
1 edc
2 zxc
2 asd
3 qwe
3 wer
3 tru
4 rgj
Output:
eno ename count
1 qaz,wsx,edc 3
2 zxc,asd 2
3 qwe,wer,tru 3
4 rgj 1
I want the above output to be solved by DataStage as well and I have to write SQL query for the same output.
Answer Posted / ajajsp
select eno, ename, count(*) from Table_Name group by eno, ename
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What steps should be taken to improve Datastage jobs?
What are stage variables and constants?
if we using two sources having same meta data and how to check the data in two sources is same or not? and if the data is not same i want to abort the job ?how we can do this?
What are the steps needed to create a simple basic datastage job?
What is the purpose of pivot stage?
How do you reject records in a transformer?
what are the errors,warnings in datastage
What are the different types of lookups in datastage?
What is the difference between datastage and datastage tx?
What are stage variables, derivations and constants?
Hi,can any one please mention list of dimension and fact tables for Sales and Distribution System for a Pharmacutical company.
What are sequencers?
how to export or import the jobs in .ISX file
table actions available in oracle connector?
Does datastage support slowly changing dimensions ?