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

9 lines
167 B
SQL

SELECT
s.name,
s.city,
cl.name AS manager
FROM company c
JOIN supplier s ON s.id = c.id
JOIN client cl ON cl.id = c.workerManagerFk
WHERE c.id = ?