salix/print/templates/email/balance-compensation/sql/client.sql

5 lines
90 B
SQL

SELECT
c.name
FROM client c
JOIN receipt r ON r.clientFk = c.id
WHERE r.id = ?;