salix/print/templates/reports/incoterms-authorization/sql/address.sql

10 lines
165 B
SQL

SELECT
a.nickname,
a.street,
a.postalCode,
a.city,
p.name province
FROM address a
LEFT JOIN province p ON p.id = a.provinceFk
WHERE a.id = ?