salix/print/templates/reports/balance-compensation/sql/company.sql

8 lines
156 B
SQL

SELECT
s.name,
s.nif,
s.street,
s.city
FROM supplier s
JOIN receipt r ON r.companyFk = s.id
WHERE r.id = ?;