Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Top Sales per Region | Introduction to Window Functions
Window Functions in SQL

bookChallenge: Top Sales per Region

Tarea

Swipe to start coding

Write a query to find the highest sale amount and corresponding employee for each region using window functions.

  • Assign a row number to each sale within its region, ordering by the sale amount in descending order.
  • Select the region, employee ID, and sale amount for the row with the highest sale in each region.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

Suggested prompts:

Can you explain this in simpler terms?

What are some examples related to this topic?

Where can I learn more about this?

close

bookChallenge: Top Sales per Region

Desliza para mostrar el menú

Tarea

Swipe to start coding

Write a query to find the highest sale amount and corresponding employee for each region using window functions.

  • Assign a row number to each sale within its region, ordering by the sale amount in descending order.
  • Select the region, employee ID, and sale amount for the row with the highest sale in each region.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
single

single

some-alt