oracle pl sql case statement in where clause