chore: bootstrap independent git workflow
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
10
examples/sql/sqlite/export_query.sql
Normal file
10
examples/sql/sqlite/export_query.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
1
examples/sql/sqlite/failing_query.sql
Normal file
1
examples/sql/sqlite/failing_query.sql
Normal file
@@ -0,0 +1 @@
|
||||
SELECT * FROM missing_table;
|
||||
9
examples/sql/sqlite/happy_path_query.sql
Normal file
9
examples/sql/sqlite/happy_path_query.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
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