Noos
PT EN
RAN-DBDEA-00216
Ranvier · DBDEA

Prova DBDEA Tópicos: transformation Dificuldade: medium A questão está em en.

A monthly revenue report reads from a table with one row per month and region: the twelve months are values in a month column. The dashboard specification now requires one row per region with a separate output column for each month — Jan, Feb, and so on — each holding that month's revenue total. Which SQL capability produces this shape directly?

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. Hand-written conditional aggregation — twelve CASE WHEN expressions are the only way to reshape rows into columns in SQL, one per month
  2. B. PIVOT — it turns each distinct value of the month column into its own output column, with the aggregation applied in the same statement
  3. C. UNPIVOT — it rotates the month rows into columns and computes the aggregates while transposing the table
  4. D. explode — it expands the month values across the width of the result set, giving one column per month in a single pass
Revelar gabarito

Resposta correta: PIVOT — it turns each distinct value of the month column into its own output column, with the aggregation applied in the same statement

Referência: https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-functions

02 — Camada de Mielina · Discussão Canônica

Onde a prova tenta te enganar — e como quem passou resolveu.

0 Aprovados

contribuíram nesta questão

Matriz de Dissecção de Alternativas Clique numa alternativa para filtrar ou inaugurar a dissecção.
✦ Síntese Consolidada (Wiki) rev. #1 (baseline) · CC BY-SA 4.0
Inaugurar síntese desta questão →

Ainda não há síntese comunitária consolidada para esta questão. Abaixo está o ponto de partida oficial verificável — se você passou na prova, inaugure a dissecção das alternativas.

Gabarito Oficial (B): PIVOT — it turns each distinct value of the month column into its own output column, with the aggregation applied in the same statement

Ranvier · DBDEA

Contribuir com a Questão

Sua contribuição constrói sua Bainha Orbital

Contribuições dos pares

Nenhuma contribuição pública ainda. Seja o primeiro aprovado a explicar por que as alternativas incorretas enganam — sua contribuição constrói sua Bainha Orbital.