9 lines
194 B
MySQL
9 lines
194 B
MySQL
|
SELECT
|
||
|
tp.quantity,
|
||
|
i.name,
|
||
|
p.itemFk
|
||
|
FROM ticketPackaging tp
|
||
|
JOIN packaging p ON p.id = tp.packagingFk
|
||
|
JOIN item i ON i.id = p.itemFk
|
||
|
WHERE tp.ticketFk = ?
|
||
|
ORDER BY itemFk
|