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

13 lines
292 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,
2024-04-26 08:26:20 +00:00
co.name country
2020-12-16 07:05:41 +00:00
FROM supplier s
JOIN province p ON s.provinceFk = p.id
JOIN country co ON s.countryFk = co.id
WHERE s.id = ?