explore
Report-shaped AQL. It contains dimensions, measures, and optional filters.
AQLearn 1.1 / Welcome
Source lesson: AQLearn 1.1: Welcome. Tangible win: explain what first AQL query means, line by line.
AQL is built for analytical questions. The opening AQLearn query asks: how many orders are in each status?
explore {
measures {
count_of_orders: orders | count(orders.id),
}
dimensions {
order_status: orders.status,
}
}
exploreReport-shaped AQL. It contains dimensions, measures, and optional filters.
measuresAggregated calculations. Here, orders | count(orders.id) counts order rows.
dimensionsBreakdowns. Here, orders.status splits the count by order status.
explore { ... }: run a report-style query.measures { ... }: choose numbers to calculate.count_of_orders:: name the output column.orders | count(orders.id): start from orders, count order IDs.dimensions { ... }: choose how to break the measure down.order_status: orders.status: group result by status.orders.Next: aggregate functions, count, max, min, avg, using AQLearn 1.2.