Spaces:
Sleeping
Sleeping
Update query.sql
Browse files
query.sql
CHANGED
@@ -14,7 +14,6 @@ SELECT
|
|
14 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'sedimentares'->0->>'type', '[null]'), 'Não especificado') AS "Tipo sedimentares",
|
15 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'sedimentares'->0->>'scientificName', '[null]'), 'Não especificado') AS "Nome científico sedimentares",
|
16 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'sedimentares'->0->>'contact_relations', '[null]'), 'Não especificado') AS "Relações de contato sedimentares",
|
17 |
-
|
18 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'metamórficas'->0->>'name', '[null]'), 'Não especificado') AS "Nome metamórficas",
|
19 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'metamórficas'->0->>'type', '[null]'), 'Não especificado') AS "Tipo metamórficas",
|
20 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'metamórficas'->0->>'scientificName', '[null]'), 'Não especificado') AS "Nome científico metamórficas",
|
@@ -35,20 +34,12 @@ SELECT
|
|
35 |
COALESCE(NULLIF((data->'responseData'->2->'response'->'host_rocks'->>'name')::text, '[null]'), 'Não especificado') AS "Nomes rochas hospedeiras",
|
36 |
COALESCE(NULLIF(data->'responseData'->2->'response'->'host_rocks'->>'geologicalEnvironments', '[null]'), 'Não especificado') AS "Eventos geológicos rochas hospedeiras",
|
37 |
COALESCE(NULLIF(data->'responseData'->2->'response'->'host_rocks'->>'mineralizationStructures', '[null]'), 'Não especificado') AS "Estruturas de mineralização de rochas hospedeiras",
|
38 |
-
|
39 |
-
COALESCE(NULLIF(data->'responseData'->2->'response'->>'oreVolume', '[null]'), 'Não especificado') AS "Volume de minério",
|
40 |
-
COALESCE(CASE WHEN data->'responseData'->2->'response'->>'wasOreVolumeEstimated' = 'true' THEN true WHEN data->'responseData'->2->'response'->>'wasOreVolumeEstimated' = 'false' THEN false ELSE NULL END, false) AS "Volume de Minério Estimado",
|
41 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'oreContent', '[null]'), 'Não especificado') AS "Conteúdo mineral",
|
42 |
COALESCE(CASE WHEN data->'responseData'->2->'response'->>'wasOreContentEstimated' = 'true' THEN true WHEN data->'responseData'->2->'response'->>'wasOreContentEstimated' = 'false' THEN false ELSE NULL END, false) AS "Conteúdo de Minério Estimado",
|
43 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'oreConcentration', '[null]'), 'Não especificado') AS "Concentração de minério",
|
44 |
COALESCE(CASE WHEN data->'responseData'->2->'response'->>'wasOreConcentrationEstimated' = 'true' THEN true WHEN data->'responseData'->2->'response'->>'wasOreConcentrationEstimated' = 'false' THEN false ELSE NULL END, false) AS "Concentração de Minério Estimada",
|
45 |
-
|
46 |
-
|
47 |
COALESCE(NULLIF(data->'responseData'->'set_mineralization_important_data'->'response'->>'structures', '[null]'), 'Não especificado') AS "Estruturas",
|
48 |
-
|
49 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'mineralFabric', '[null]'), 'Não especificado') AS "Textura mineral",
|
50 |
-
|
51 |
-
|
52 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'associatedMinerals', '[null]'), 'Não especificado') AS "Minerais associados",
|
53 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'fluidInclusionsAnalysis', '[null]'), 'Não especificado') AS "Análise de inclusões fluidas",
|
54 |
COALESCE(NULLIF(data->'responseData'->2->'response'->'hydrotermal_alterations'->>'alterationTypes', '[null]'), 'Não especificado') AS "Tipos de alterações hidrotermais",
|
|
|
14 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'sedimentares'->0->>'type', '[null]'), 'Não especificado') AS "Tipo sedimentares",
|
15 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'sedimentares'->0->>'scientificName', '[null]'), 'Não especificado') AS "Nome científico sedimentares",
|
16 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'sedimentares'->0->>'contact_relations', '[null]'), 'Não especificado') AS "Relações de contato sedimentares",
|
|
|
17 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'metamórficas'->0->>'name', '[null]'), 'Não especificado') AS "Nome metamórficas",
|
18 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'metamórficas'->0->>'type', '[null]'), 'Não especificado') AS "Tipo metamórficas",
|
19 |
COALESCE(NULLIF(data->'responseData'->1->'response'->'rockTypes'->'metamórficas'->0->>'scientificName', '[null]'), 'Não especificado') AS "Nome científico metamórficas",
|
|
|
34 |
COALESCE(NULLIF((data->'responseData'->2->'response'->'host_rocks'->>'name')::text, '[null]'), 'Não especificado') AS "Nomes rochas hospedeiras",
|
35 |
COALESCE(NULLIF(data->'responseData'->2->'response'->'host_rocks'->>'geologicalEnvironments', '[null]'), 'Não especificado') AS "Eventos geológicos rochas hospedeiras",
|
36 |
COALESCE(NULLIF(data->'responseData'->2->'response'->'host_rocks'->>'mineralizationStructures', '[null]'), 'Não especificado') AS "Estruturas de mineralização de rochas hospedeiras",
|
|
|
|
|
|
|
37 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'oreContent', '[null]'), 'Não especificado') AS "Conteúdo mineral",
|
38 |
COALESCE(CASE WHEN data->'responseData'->2->'response'->>'wasOreContentEstimated' = 'true' THEN true WHEN data->'responseData'->2->'response'->>'wasOreContentEstimated' = 'false' THEN false ELSE NULL END, false) AS "Conteúdo de Minério Estimado",
|
39 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'oreConcentration', '[null]'), 'Não especificado') AS "Concentração de minério",
|
40 |
COALESCE(CASE WHEN data->'responseData'->2->'response'->>'wasOreConcentrationEstimated' = 'true' THEN true WHEN data->'responseData'->2->'response'->>'wasOreConcentrationEstimated' = 'false' THEN false ELSE NULL END, false) AS "Concentração de Minério Estimada",
|
|
|
|
|
41 |
COALESCE(NULLIF(data->'responseData'->'set_mineralization_important_data'->'response'->>'structures', '[null]'), 'Não especificado') AS "Estruturas",
|
|
|
42 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'mineralFabric', '[null]'), 'Não especificado') AS "Textura mineral",
|
|
|
|
|
43 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'associatedMinerals', '[null]'), 'Não especificado') AS "Minerais associados",
|
44 |
COALESCE(NULLIF(data->'responseData'->2->'response'->>'fluidInclusionsAnalysis', '[null]'), 'Não especificado') AS "Análise de inclusões fluidas",
|
45 |
COALESCE(NULLIF(data->'responseData'->2->'response'->'hydrotermal_alterations'->>'alterationTypes', '[null]'), 'Não especificado') AS "Tipos de alterações hidrotermais",
|