How many orders each buyer has

How many orders each buyer has

One buyer can place many orders, and each of them keeps the buyer's id in orders.user_id. For every buyer who has orders, return user_id and the number of their orders as orders_count, ordered by user_id ascending.

A ordem das linhas importa

PostgreSQLv16
Entre para enviar

O resultado da sua consulta aparecerá aqui

Focus radio
Paused · SomaFM · Fluid