BaşlayınÜcretsiz Başlayın

Histogram of orders

Dave also wants to plot the histogram of orders to see if it matches the shape of the histogram of revenues.

Send Dave a frequency table of orders by user.

Bu egzersiz

Analyzing Business Data in SQL

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

SELECT
  -- Select the user ID and the count of orders
  ___,
  ___ AS orders
FROM orders
GROUP BY user_id
ORDER BY user_id ASC
LIMIT 5;
Kodu Düzenle ve Çalıştır