chore: bootstrap independent git workflow
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
12
examples/sql/mysql/export_query.sql
Normal file
12
examples/sql/mysql/export_query.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
3
examples/sql/mysql/failing_query.sql
Normal file
3
examples/sql/mysql/failing_query.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
USE qa_demo;
|
||||
|
||||
SELECT * FROM missing_table;
|
||||
11
examples/sql/mysql/happy_path_query.sql
Normal file
11
examples/sql/mysql/happy_path_query.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
USE qa_demo;
|
||||
|
||||
SELECT
|
||||
a.id AS account_id,
|
||||
a.display_name,
|
||||
COUNT(t.id) AS ticket_count,
|
||||
SUM(CASE WHEN t.status = 'open' THEN 1 ELSE 0 END) AS open_ticket_count
|
||||
FROM accounts a
|
||||
LEFT JOIN tickets t ON t.account_id = a.id
|
||||
GROUP BY a.id, a.display_name
|
||||
ORDER BY a.id;
|
||||
Reference in New Issue
Block a user