emidiosouza commited on
Commit
f40e172
·
verified ·
1 Parent(s): 737215e

Update query.sql

Browse files
Files changed (1) hide show
  1. query.sql +1 -1
query.sql CHANGED
@@ -16,7 +16,7 @@ SELECT
16
  -- região
17
  COALESCE(NULLIF(array_to_string(ARRAY_AGG(DISTINCT NULLIF(NULLIF(t.mineralization->'region'->>'region_name', 'Não especificado'), '')), ', '), ''), 'Não especificado') AS "Região",
18
  -- quantidade mineralizacão
19
- COALESCE(NULLIF(array_to_string(ARRAY_AGG(DISTINCT NULLIF(NULLIF(t.mineralization->>'quantity', 'Não especificado'), '')), ', '), ''), 'Não especificado') AS "Quantidade do minério",
20
 
21
  COALESCE(NULLIF(array_to_string(ARRAY(
22
  SELECT jsonb_extract_path_text(concentration, 'name_of_ore') || ' - (' || jsonb_extract_path_text(concentration, 'concentration_of_ore') || ')'
 
16
  -- região
17
  COALESCE(NULLIF(array_to_string(ARRAY_AGG(DISTINCT NULLIF(NULLIF(t.mineralization->'region'->>'region_name', 'Não especificado'), '')), ', '), ''), 'Não especificado') AS "Região",
18
  -- quantidade mineralizacão
19
+ COALESCE(NULLIF(array_to_string(ARRAY_AGG(DISTINCT NULLIF(NULLIF(t.mineralization->>'quantity', 'Não especificado'), '')), ', '), ''), 'Não especificado') AS "Quantidade de minério",
20
 
21
  COALESCE(NULLIF(array_to_string(ARRAY(
22
  SELECT jsonb_extract_path_text(concentration, 'name_of_ore') || ' - (' || jsonb_extract_path_text(concentration, 'concentration_of_ore') || ')'