The decode statement is something like:
select decode(value1<value2, "late", value1=<value2, "on time", "early") part_status
We want to use the alias part_status in the where statement of the same select -- for example
select decode(table1.field1<table1.field2...