Запрос №3
This commit is contained in:
9
App/Requests/sql/zapros3.sql
Normal file
9
App/Requests/sql/zapros3.sql
Normal 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}';
|
||||
Reference in New Issue
Block a user