count number of deptno in a emp table?

Answers were Sorted based on User's Feedback



count number of deptno in a emp table?..

Answer / naganji mandru

Using aggrgator one way,Another way write query from database stage like

Select deptno,count(*) as c from emp group by deptno

Is This Answer Correct ?    2 Yes 0 No

count number of deptno in a emp table?..

Answer / nish

use aggregator stage: Group by Deptno.
In the calculation field: select RecCount

this will create a new column with count of deptno. Make sure to map to the output stage.

Hope this helps your poorly framed question.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Data Stage Interview Questions

hi i am madan, in real time data stage who is the source provide? and how to recevied in developer? Pls send me answer 

1 Answers   HCL,


im new to this tool im now at project plz tell me step by step process how to design plz help me i wnt to go with exp for job plz give me d proper design and explination

0 Answers  


Difference between server jobs & parallel jobs?

0 Answers  


how to get sum of sal based on dept_no and then sum of all sal irrespective of dept_no in same sql. output:- 10, 200(sum of sal for dept_no 10), 5000(sum of all sal)

0 Answers  


Hai..,This Kiran . how to immlement SCD's through sequential file.please explain briefly.if nt ask me i will explain ,what i know.

2 Answers  






how to read 100 records at a time in source a) hw is it fr metadata Same and b) if metadata is nt same?

0 Answers   HCL,


how can we generate row values like 1 1 1 2 2 2 3 3 3 using col generator plz let me know

2 Answers  


HOW CAN WE SEE THE DATA IN DATASET?

4 Answers  


Differentiate between hash file and sequential file?

0 Answers  


how do u capture duplicates through sort & transformer

4 Answers  


we run a job in 4 nodes,i want to run same job on 8 nodes is it possible? job recompling is mandtory?why?

1 Answers   HSBC, NTT Data,


In merge stage can we update the values?

3 Answers   TCS,


Categories