Home » SQL & PL/SQL » SQL & PL/SQL » SQL query to retrieve records in frequency of Days
SQL query to retrieve records in frequency of Days [message #572855] Tue, 18 December 2012 03:47 Go to next message
dilip.nnitw@gmail.com
Messages: 1
Registered: December 2012
Location: Hyderabad
Junior Member
Hi friend,

I have a following requirement in SQL -

Requirement -

I need to list the purchase Ordrers which are not closed.

my sql query should pull if the PO is not closed in 30,90 and 150 days.

It should be shown only on 3oth,90th and 150th day only even the Purchase order is not closed on 33rd day.

Hope the requirement is clear.

Thanks in advance.

Swapna
Re: SQL query to retrieve records in frequency of Days [message #572859 is a reply to message #572855] Tue, 18 December 2012 04:05 Go to previous message
Michel Cadot
Messages: 57613
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Welcome to the forum.

With any SQL or PL/SQL question, please, Post a working Test case: create table and insert statements along with the result you want with these data then we will be able work with your table and data. Explain with words and sentences the rules that lead to this result.

Before, Please read OraFAQ Forum Guide and How to use [code] tags and make your code easier to read.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code, use code tags and align the columns in result.
Use the "Preview Message" button to verify.
Also always post your Oracle version, with 4 decimals.

Regards
Michel
Previous Topic: Explain plan help
Next Topic: ORA-03113 end-of-file on communication channel
Goto Forum:
  


Current Time: Sun Apr 20 18:47:35 CDT 2014

Total time taken to generate the page: 0.07621 seconds