Estás redactando una consulta y te gustaría saber el total de impresiones que se han mostrado por campaña, por fuente de suministro y por tipo de dispositivo. ¿Cuál de las siguientes opciones representa cómo debes redactar la consulta?
Elige una respuesta
Toca una opción para verificar tu respuesta.
Respuesta correcta: SELECCIONA campaña, fuente de suministros, tipo de dispositivo, SUM(impresiones) impresiones AS DESDE impresiones DSP GRUPO POR 1,2,3.
Por qué esta es la respuesta
The correct query uses SELECT to specify the dimensions (campaign, supplysource, devicetype) and the aggregated metric (SUM(impressions)). The AS impressions renames the sum for clarity. The FROM impressions DSP indicates the table from which the data is retrieved. Finally, GROUP BY 1,2,3 groups the results by the first three selected columns (campaign, supplysource, devicetype), which is essential for calculating impressions per unique combination of these dimensions. The first incorrect option has a syntax error: impresiones AS DESDE tipo de dispositivo is not valid SQL. It also attempts to group by only two columns, which would not provide the breakdown by device type. The third incorrect option has multiple syntax errors: impresiones totales SUM(impresiones) dispositivo AS DESDE campaña, fuente de suministros is not a valid SELECT clause and DESDE campaña, fuente de suministros is incorrect for specifying the table.
Aprueba tu examen — sin la interminable búsqueda de respuestas
Obtén todas las preguntas y explicaciones verificadas para este examen en un solo lugar, y ahorra horas de preparación. Más de 1,000 certificaciones · Más de 20 idiomas · Empieza gratis.
Aprueba tu examen más rápido → No se requiere tarjeta