You can use IN to create subqueries. For example:
SELECT tickets.id
FROM tickets
WHERE tickets.id IN (
SELECT tickets.id
FROM tickets
WHERE tickets.ref LIKE 'AAAA-%'
) copy
You can use IN to create subqueries. For example:
SELECT tickets.id
FROM tickets
WHERE tickets.id IN (
SELECT tickets.id
FROM tickets
WHERE tickets.ref LIKE 'AAAA-%'
) copy
Моля, логнете се или се регистрирайте, за да оставите коментар.