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 / subhash

Select MAX(SAL) FROM EMP
where to_char(Date,'MM-YYYY')=to_char(sysdate-1,'MM-YYYY')

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of sorting methods are available in datastage?

638


What are the main features of datastage?

668


What are the differences between datastage and informatica?

572


Explain the datastage parallel extender (px) or enterprise edition (ee)?

744


What are the different layers in the information server architecture?

647






Why do we use link partitioner and link collector in datastage?

689


root tree will find which is server job and which is parallel job?

1459


How do you import and export the datastage jobs?

741


How many areas for files does datastage have?

645


Terminate Activity

842


Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?

1787


Lookup constraints

845


Why fact table is in normal form?

683


what are the errors,warnings in datastage

2158


How to RD using transformer?

868