Kaynağa Gözat

finished exercise 5

master
Ernest Debruyne 2 yıl önce
ebeveyn
işleme
b351489d26
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6
    0
      exercise_5.sql

+ 6
- 0
exercise_5.sql Dosyayı Görüntüle

@@ -0,0 +1,6 @@
SELECT SUM(max_invoice_total) AS total_max
FROM (SELECT vendor_id, MAX(invoice_total) AS max_invoice_total
FROM invoices
WHERE invoice_total - payment_total - credit_total > 0
GROUP BY vendor_id) t;

Loading…
İptal
Kaydet