If condition in select statement pl sql