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
Messages: 3
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.

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: 65144
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.

Previous Topic: insert or update records into target table
Next Topic: source does not have a runnable target
Goto Forum:

Current Time: Sat Aug 19 15:43:31 CDT 2017

Total time taken to generate the page: 0.04848 seconds