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

8 lines
133 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 = ?