So, it appears that I can't use an Alias in a WHERE clause with Oracle 9i? ORA-00904:"SELLOFFDATE":Invalid Identifier is the error.

If that is the case, how shall I perform the comparison in my WHERE clause below? If I'm simply making some SQL error, let me know that too.

Here's a snippet of what I'd like to do. Thanks for any help!
sql Code:
  1. select
  2.   (select to_date(r2.FIELD_VALUE, 'dd-mon-yyyy')
  3.   from V_REPCUSTOMFIELDDATA r2
  4.   where
  5.     r2.INTERNAL_DESCRIPTIONS_CODE = 35
  6.     and r2.ASSOCIATED_WITH_CODE = ag.AGREEMENTS_ABBR) SellOffDate,
  7.   ag.AGREEMENTS_ABBR LicensorNumber
  8. from V_AGREEMENT ag
  9. where SellOffDate between
  10.     to_date('01/01/1999', 'mm/dd/yyyy') and to_date('12/31/2001', 'mm/dd/yyyy')