I need to get the values of the previous quarter.how to do
this?eg: if my cuurent month is may i need to get the datas
of the month jan,feb,march.Can it be done in oracle.I tried
with date function q but for the month jan its not
retriving the previous quarter(oct-dec).how to solve
this.plpz anyone help me?
Answer Posted / jas
yes its possible...u can use the date functions
select * from table_name where col_name
between add_months (trunc(sysdate,'MONTH')-3)
and trunc(sysdate,'MONTH')-1
try usgin this might help..
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How does oracle handle read consistency?
How to grant create session privilege to a user in oracle?
What do you mean by redo log file mirroring?
What is Segment Advisor in Oracle?
How do I use unicode codesets with the weblogic jdriver for oracle driver?
Explain the difference between sap and oracle?
Is it possible to insert comments into sql statements return in the data model editor ?
Explain about achiever in sql?
Explain what does a control file contain?
How do you find out from the RMAN catalog if a particular archive log has been backed-up?
How to install oracle database 10g xe?
Can we create trigger on materialized view in oracle?
 What are the oracle DML commands possible through an update strategy?
How to use "if" statements on multiple conditions?
Are truncate and delete commands same? If so why?