anything wrong ?

is there any thing wrong with this expression because its giving me an error. thanx for the help

SCAN FOR BETWEEN(ldDate,from_date,to_date) !EOF()



Answer this question

anything wrong ?

  • learningdba

    There is not any operator or scope clause between 2 functions.

    scan for between(ldDate, from_date,to_date) && no need for eof() check scan does that for you

     

    scan for between(ldDate, from_date,to_date) while !eof()


  • Mazzica

    Actually, it's easier than that. SCAN FOR implies WHILE !EOF(), so leave that off. The statement can be:

    SCAN FOR BETWEEN(ldDate, From_Date, To_Date)



  • anything wrong ?