salix/print/templates/reports/supplier-campaign-metrics/sql/supplier.sql

13 lines
307 B
MySQL
Raw Normal View History

2020-12-16 07:05:41 +00:00
SELECT
s.street,
s.city,
s.postcode,
s.id,
s.name AS supplierName,
p.name AS province,
co.country
FROM supplier s
JOIN province p ON s.provinceFk = p.id
JOIN country co ON s.countryFk = co.id
WHERE s.id = ?