Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help to create a report with Segment Values To and From Parameters

Status
Not open for further replies.

cruishall

Programmer
May 26, 2005
12
US
Help! I need to create a report that will need to get Segment values (code combinations) FROM and TO range.
 
Create 2 parameters. e.g. P_FROM and P_TO, and in the query restrict the selection by the parameters. Something like
Code:
where
...
and code_combination between :p_from and :p_to
...
 
Thanks for the reply. I actually have this:

where
...
AND (gcc.segment1 BETWEEN :p_segment1_low AND
:p_segment1_high
AND gcc.segment2 BETWEEN :p_segment2_low AND :p_segment2_high
AND
...


is there any better way of doing this? In the application, it has an object that it calls, but I have no idea yet how the apps do it....

thanks
 
I think this will work in some cases, but when the user enters 'ZZZZZZZ' values for the high segment values, the report is not returning records where it should.
 
That may happen if some segments are nulls. Try using NVL function with segments.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top