Сколько заказов имеет клиентскую базу данных Python
SELECT customers_firstname, customers_lastname,
COUNT(orders_id) AS Number
FROM customers LEFT JOIN orders AS o
USING (customers_id) GROUP BY (o.customers_id)
ORDER BY Number DESC LIMIT 5;
Lonely Lapwing