PL/SQL (MOSC)

MOSC Banner

Displaying Fiscal Quarter Name as Default Value in Prompt

edited Dec 20, 2011 2:39AM in PL/SQL (MOSC) 2 commentsAnswered ✓
It was suggested I ask the following question in this community as opposed to the Business Intelligence one.

Hello,

There is a specific column in our RPD named 'Fiscal Quarter Name' (eg 'FQ 4', 'FQ 2', etc) and we want the previous value of this selected.  In addition, the fiscal quarter begins in July (Q1 is July-September, Q2 is October-November etc).  Therefore, I would need to write an sql statement like the following:

currentqtrname :=  select to_char(add_months((sysdate),-3),'Q') from dual (this extracts the previous quarter and takes into account the fiscal year timeline).

However, I need to organize this so that the correct Fiscal Quarter Name is displayed.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center