Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why do you use stored procedures and state some of its disadvantages?

1028


nw i'm doing MBA system and planning to do oracle,database management.tell me that whether it is useful r not?.refer any course for my carrier pls

2209


What is a user account in oracle?

1121


What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?

4522


Differentiate between post-database commit and post-form commit?

1040


How to delete a column in an existing table in oracle?

1071


What is oracle used for?

1026


what are archived logs?

2199


How to store only time; not date and time?

1020


What is oracle host variable?

1061


What is truncate oracle?

971


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

1110


What are the different types of trigger and explain its various uses and functions?

1093


what are bitmap indexes? How does they work?

2244


Is oracle a programming language?

985