Home » Developer & Programmer » Forms » How to use between or <= on Select statement
How to use between or <= on Select statement [message #180377] Mon, 03 July 2006 05:38 Go to next message
anna marie
Messages: 26
Registered: June 2006
Location: Philippines
Junior Member
I'm trying to split my data into separate column,
but I'm having problem on decode function as I can't do the logic below on my select statement.

If b_date <= date1 then column1
If b_date <= date2 then column2
If b_date between (date3, date4) then column3
and so on...

Is there a way to use (between) function or (<= >=) operator in select statement?

I thank you all in advance!
Re: How to use between or <= on Select statement [message #180381 is a reply to message #180377] Mon, 03 July 2006 05:50 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Yes, using the CASE statement.
Re: How to use between or <= on Select statement [message #180483 is a reply to message #180377] Mon, 03 July 2006 19:16 Go to previous message
anna marie
Messages: 26
Registered: June 2006
Location: Philippines
Junior Member
It works, both syntax.
Thank you so much.
Previous Topic: Open a file in Forms 10g , Export/Import from Forms
Next Topic: Forms Property sheet question
Goto Forum:
  


Current Time: Fri Sep 20 08:40:18 CDT 2024