Video
MySQL in Tablux: revenue by country, then an AI question
A 27-second clip of Tablux on a Mac connected to MySQL (a MariaDB 10.11 server): Insights first, then a typed query for revenue by shipping country, then Tablux AI answers “Top 5 categories by revenue this year” with a four-table join that runs from the editor.
The query typed in the video
Orders and revenue per shipping country, biggest first, leaving out orders without a country.
SELECT ship_country AS country,
COUNT(*) AS orders,
ROUND(SUM(total), 2) AS revenue
FROM orders
WHERE ship_country IS NOT NULL
GROUP BY ship_country
ORDER BY revenue DESC
LIMIT 10;The question for Tablux AI
The question, in everyday words: “Top 5 categories by revenue this year”
The reply: Revenue from order lines since 1 January, by category:
SELECT cat.name AS category,
ROUND(SUM(oi.quantity * oi.unit_price), 2) AS revenue
FROM order_items oi
JOIN products p ON p.id = oi.product_id
JOIN categories cat ON cat.id = p.category_id
JOIN orders o ON o.id = oi.order_id
WHERE o.ordered_at >= MAKEDATE(YEAR(CURDATE()), 1)
GROUP BY cat.name
ORDER BY revenue DESC
LIMIT 5;“Use in editor” puts the query in the editor; Run runs it. Nothing runs by itself.
What came back
Tents and hiking boots lead, then sleeping bags, winter jackets and backpacks. The AI picked MAKEDATE(YEAR(CURDATE()), 1) for “this year”, which is MySQL and MariaDB syntax: it writes for the engine you are connected to.
How this was recorded
Everything in the clip is the real app on a Mac, connected to a real MariaDB 10.11 server (MySQL compatible) holding the Trailhead Outfitters demo shop (two years of orders, products, customers and refunds). The typed query and the AI’s query both ran against that data; the result grids are what came back. The one thing staged is the AI’s reply: the recording can’t call Tablux AI live, so it shows a fixed answer of the kind Tablux AI gives, written for this schema.
Try it
Tablux is free on the App Store for iPhone, iPad and Mac, with two connections of your own and 5 AI questions a month. Tablux Pro ($9.99 a month, or $79.99 a year with a 7-day free trial) adds unlimited connections, SSH tunnels and 200 AI questions a month. The assistant sees your schema (table and field names, types, keys), never your rows, and its query only runs when you tap Run.
Questions
Is this MySQL or MariaDB?
The recording used a MariaDB 10.11 server. Tablux connects to MySQL and MariaDB the same way, and the queries in the clip run on both.