each meeting different criteria .
Hi Dennis,
You wrote:
If I use individual objects at the universe level with different where clauses on each, no data is returned.
Use the oracle decode in stead of the where conditions:
DaysOld <= 15 would have a select like:
sum(decode(sign(DaysOld-16),-1,1,0))
adding a one for each age which when 16 is subtracted becomes negative (i.e. age < 16) and a zero otherwise.
DaysOld 16-30 would have a select like:
sum(decode(sign(DaysOld-16),-1,0,dedode(sign(DaysOld-31),-1,1,0)))
etc.
Good luck,
Marianne
PS For all… My most humble apologies for not sizing down the original message in my last post, I forgot!
Listserv Archives (BOB member since 2002-06-25)