I like this example of adding a field called “Type” in a “select” statement from sqlitetutorial.net’s UNION ALL tutorial at: https://www.sqlitetutorial.net/sqlite-union/
SELECT
FirstName,
LastName,
'Employee' AS Type
FROM employees
UNION
SELECT
FirstName,
LastName,
'Customer'
FROM customers
ORDER BY
FirstName,
LastName;
- Thank you Simon Willison for your wonderful datasette software!
The actual query for SQLite nerds :-)
select * from [2026-02-01-2026-02-01-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-02-2026-02-02-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-03-2026-02-03-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-04-2026-02-04-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-05-2026-02-05-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-06-2026-02-06-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-07-2026-02-07-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-08-2026-02-08-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-09-2026-02-09-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-10-2026-02-10-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-11-2026-02-11-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-12-2026-02-12-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-13-2026-02-13-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-14-2026-02-14-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-15-2026-02-15-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-16-2026-02-16-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-17-2026-02-17-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-18-2026-02-18-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-19-2026-02-19-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-20-2026-02-20-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-21-2026-02-21-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-22-2026-02-22-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-23-2026-02-23-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-24-2026-02-24-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-25-2026-02-25-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-26-2026-02-26-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-27-2026-02-27-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
union all
select * from [2026-02-28-2026-02-28-thunderbird-creator-answers-desktop-all-locales] where content like '%yahoo%'
Leave a comment on github