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
Explain the importance of surrogate key in data warehousing?
WAT TYPE OF PL/SQL QUERRYS USED IN DATASTAGE
Which algorithm you used for your hashfile?
how to delete one row in target dataset
How a routine is called in datastage job?
Different ways a project can be moved to production ?...example ….export-import and Version control.
Name the command line functions to import and export the DS jobs?
What are stage variables, derivations and constants?
Can you explain link buffering?
To see hidden files in LINIX?
What are the steps required to kill the job in Datastage?
Can you explain kafka connector?
What is a quality stage in datastage tool?
how to use self join using datastage ? can u tell me using stage how can we implemnet the self join
How rejected rows are managed in datastage?