Запрос №3

This commit is contained in:
Anton Kamalov
2024-10-24 23:30:57 +03:00
parent 42720af4e2
commit 341c41489c
5 changed files with 38 additions and 10 deletions

View File

@@ -0,0 +1,9 @@
SELECT w.date_of_delivery AS 'Дата поставки',
name AS 'Поставщик',
wl.count AS 'Количество',
wl.price * wl.count AS 'Общая сумма'
FROM waybill w
JOIN waybill_lines wl USING(waybill_id)
JOIN workpiece wp USING(work_id)
JOIN sellers USING(sel_id)
WHERE material = '${material}';