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


Please Help Members By Posting Answers For Below Questions

How to do a full database export?

644


How to define a specific record type?

628


How to convert a date to char in oracle? Give one example.

591


How do I know if oracle is installed on windows?

492


What do you mean by group by clause?

565






what is the dual table in oracle?

558


What are data pump export and import modes?

613


What are the tools for Oracle ?

613


Why packages are used in oracle?

547


How to revoke create session privilege from a user in oracle?

561


How to recover a dropped table in oracle?

609


Can I create users through internet explorer in oracle 10g?

580


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

2458


How to run create database statement again?

627


How to build data dictionary view an new database?

537