account - flexfield GL
dear all
i'm trying to select a query to select all accounts between max and min
but it is not giving me the right result
select acct.segment1||'-'||acct.segment2||'-'||acct.segment3||'-'||acct.segment4||'-'||acct.segment5||'-'||acct.segment6 from gl_code_combinations acct where
acct.CHART_OF_ACCOUNTS_ID = 50241
and acct.segment1||'-'||acct.segment2||'-'||acct.segment3||'-'||acct.segment4||'-'||acct.segment5||'-'||acct.segment6 between :P_MIN_FLEX and :P_MAX_FLEX
can you please help.
thanks in advance