salix/print/templates/reports/invoice/sql/tickets.sql

8 lines
141 B
SQL

SELECT
t.id,
t.shipped,
t.nickname
FROM invoiceOut io
JOIN ticket t ON t.refFk = io.ref
WHERE t.refFk = ?
ORDER BY t.shipped