salix/print/templates/email/cmr/sql/cmr.sql

6 lines
109 B
SQL

SELECT t.id ticketFk,
c.id
FROM ticket t
JOIN cmr c ON c.id = t.cmrFk
WHERE t.id = ?