emidiosouza commited on
Commit
658edb2
·
verified ·
1 Parent(s): e74ff86

Update query.sql

Browse files
Files changed (1) hide show
  1. query.sql +3 -3
query.sql CHANGED
@@ -37,11 +37,11 @@ SELECT
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 "wasOreVolumeEstimated",
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 "wasOreContentEstimated",
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 "wasOreConcentrationEstimated",
45
 
46
 
47
  COALESCE(NULLIF(data->'responseData'->'set_mineralization_important_data'->'response'->>'structures', '[null]'), 'Não especificado') AS "Estruturas",
 
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",