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

Monthly active users (MAU)

Bob predicts that the investors won't be satisfied with only registrations by month. They will want to know how many users actually used Delivr as well. He's decided to include another line chart of Delivr's monthly active users (MAU); he's asked you to send him a table of monthly active users.

Bu egzersiz

Analyzing Business Data in SQL

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

Egzersiz talimatları

  • Select the month by truncating the order dates.
  • Calculate MAU by counting the users for every month.
  • Order by month in ascending order.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

SELECT
  -- Truncate the order date to the nearest month
  ___ :: DATE AS delivr_month,
  -- Count the unique user IDs
  ___ AS mau
FROM orders
GROUP BY ___
-- Order by month
ORDER BY ___ ASC;
Kodu Düzenle ve Çalıştır