is it possible to write a select statement in formula just like in oracle report?