Spaces:
Sleeping
Sleeping
Update query.sql
Browse files
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
|
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') || ')'
|