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
What are the functionalities of link partitioner?
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
What are stage variables, derivations and constants?
What are iconv and oconv?
How to write a expression to display the first letter in Caps in each word using transformer stage ? Please let me know ASAP Thanks in advance...
There are two file are there .1st file contains 5 records and 2nd file contain 10 records in target they want 50 records.how can achieve this
What is apt_config in datastage?
whom do you report?
What are the steps needed to create a simple basic datastage job?
What are the various kinds of the hash file?
Define Merge?
How will you load you daily/monthly jobs datas in to Fact and Dimension table using datastage.
what is use of SDR function?
Where the datastage stored his repository?
Define Data Stage?