salix/print/templates/reports/exportation/sql/company.sql

9 lines
191 B
MySQL
Raw Permalink Normal View History

2022-09-26 11:33:27 +00:00
SELECT
s.name,
s.city,
cl.name AS manager,
cl.fi AS managerFi
FROM company c
JOIN supplier s ON s.id = c.id
JOIN client cl ON cl.id = c.workerManagerFk
WHERE c.id = ?