Hi I have this query and I would like to extract exactly the t0_0.pp,0
that is in COALESCENSE()
parenthesis. I can have more parethesis before or after the COALESCENSE for this I am trying to use regular expressions like this (([^()]+))' but is givving me all inside all the parenthesis and I only wnat the COALESCENSE. Any idea?
select DISTINCT SUM(case when t0_0.pp is not null then COALESCE(t0_0.pp,0)
else 0 end) from inventory_coverage_view t0_0 where LOWER(t0_0.h) ='vg' AND t0_0.id = '9'
thank you in advance :)