:Last review date > 6 months (5 Merged) [message #505666] |
Wed, 04 May 2011 08:29  |
pallavigs
Messages: 37 Registered: March 2006 Location: India
|
Member |
|
|
Hi All,
I am trying to get a condition for my query like "last review date > 6months"
the last review date is attribute6 defined as standard date in dff column.
SELECT DISTINCT pv.vendor_name,
pv.segment1,
pv.attribute5 "SUPAMT",
pv.attribute7 "SUPCENTRALREF",
pv.end_date_active,
pv.attribute6 "LASTREVIEWDATE"
FROM po_vendors pv
WHERE attribute6 >= TO_CHAR(TRUNC(add_months(SYSDATE, -6)))
ORDER BY 1;
Its urgent,need regardinG same.i DEVELOPED IT..BUT ITS NOT GIVING ME THE RIGHT OUTPUT.
[Edit MC: remove URGENT from title)
[Updated on: Thu, 05 May 2011 10:17] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: URGENT condition needed [message #505756 is a reply to message #505723] |
Wed, 04 May 2011 13:43   |
manubatham20
Messages: 566 Registered: September 2010 Location: Seattle, WA, USA
|
Senior Member |

|
|
Hi Pallavigs,
What about carefully listening to others and follow that other members suggested.
SELECT DISTINCT pv.vendor_name,
pv.segment1,
pv.attribute5 "SUPAMT",
pv.attribute7 "SUPCENTRALREF",
pv.end_date_active,
attribute6 "LASTREVIEWDATE",
SYSDATE-Attribute6
FROM po_vendors pv
WHERE attribute6 >= add_months(SYSDATE, -6)
Try to execute the code above. And just ask a question to yourself, do you really know how to use to_char with date datatypes?
Regards,
Manu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: URGENT condition needed [message #506036 is a reply to message #505974] |
Fri, 06 May 2011 04:23  |
John Watson
Messages: 8974 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
People, you are beating your heads against a brick wall. This is a descriptive flexfield. These are varchars, with a kind-of data dictionary that lets you define a structure within them. It is an EBS thing. The only way to get sensible results is to go through the EBS data retrieval routines. Trying to run queries like this reliably may be impossible.
@OP, as I said before, you might want to try the EBS forum. Explain what you want to achieve there, and I'm sure you'll get qan answer.
|
|
|