13 lines
178 B
SQL
13 lines
178 B
SQL
USE qa_demo;
|
|
|
|
SELECT
|
|
t.id AS ticket_id,
|
|
a.email,
|
|
t.title,
|
|
t.status,
|
|
t.amount_cents,
|
|
t.created_at
|
|
FROM tickets t
|
|
JOIN accounts a ON a.id = t.account_id
|
|
ORDER BY t.id;
|