salix/print/templates/email/payment-update/sql/payMethod.sql

8 lines
141 B
SQL

SELECT
c.dueDay,
c.iban,
pm.name,
pm.code
FROM client c
JOIN payMethod pm ON pm.id = c.payMethodFk
WHERE c.id = :clientId