This message was deleted.
# troubleshooting
s
This message was deleted.
r
something in LOOKUP function such as optional 3rd argument could do it, eg
Copy code
select
  LOOKUP(name, 'name_org', 'org1') as org,
  count(*)
from quoted_longs
group by LOOKUP(name, 'name_org')
or else, maybe
missingValue
or
defaultValue
attribute & value in lookup config
hmph - this works.. maybe not the best approach?
g
you can use COALESCE for this:
COALESCE(LOOKUP(name, 'name_org'), 'org1')
r
ah thats great - much neater, thanks!