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
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
How will you move hashed file from one location to another location?
explain about citrix scheduling tool in datastage
What are the different common services in datastage?
hi iam new to this tooliam cmpltied to know abt datastage so now iam in project tell me whole step by step what iam doing iwnt to go with exp so plz hlp me pals
Which warehouse using in your datawarehouse
How will you load you daily/monthly jobs datas in to Fact and Dimension table using datastage.
How we can covert server job to a parallel job?
What are some different alternative commands associated with "dsjob"?
How do you import and export the datastage jobs?
What are datastage sequences?
Different ways a project can be moved to production ?...example ….export-import and Version control.
Define APT_CONFIG in Datastage?
what are the errors,warnings in datastage
What is ds designer?