7 lines
152 B
MySQL
7 lines
152 B
MySQL
|
SELECT
|
||
|
io.ref,
|
||
|
t.id AS ticketFk
|
||
|
FROM invoiceOut io
|
||
|
JOIN ticket t ON t.refFk = io.ref
|
||
|
JOIN client c ON c.id = io.clientFk
|
||
|
WHERE io.id = ?
|