I HAVE EMP TABLE, 4 COLS R THERE COL1,COL2,COL3,COL4
ID-- 101,102,103,104 SAL-- 1000,4000,2000,5000
DATE-- COLUMN. I WANT TO DISPLAY THE DATA PREVIOUS MONTH
HIGEST SAL ?
Answer Posted / indu
select max(sal) from emp where to_char(Date,'MM-YYYY')
=to_char(dateadd(month, -1, GETDATE()),'MM-YYYY');
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
file having these input and we have to get 3 output using same job Input 1 1 1 2 3 4 4 4 o/p1 o/p2 o/p3 1 1 2 2 1 3 3 1 4 4 4
Can you define merge?
how to use self join using datastage ? can u tell me using stage how can we implemnet the self join
What are the components of ascential data stage?
Describe the main features of datastage?
What is the difference between Datastage 7.5 and 7.0?
Difference between IBM DATA STAGE8.5 and DATA STAGE9.1 ?
What are system variables and sequencers in datastage
What are the primary usages of datastage tool?
How the ipc stage work?
How do you import and export data into datastage?
What are the different layers in the information server architecture?
how can we validate the flat files using the date in the header and number of records in the flat file? Using both conditions at a time.
what is repositery?
What are the different common services in datastage?