kdb+ and q fit this description. Docs here: https://code.kx.com/q/basics/qsql/
Here's an example.
In SQL:
SELECT stock, SUM(amount) AS total FROM trade GROUP BY stock
q)select total:sum amt by stock from trade
kdb+ and q fit this description. Docs here: https://code.kx.com/q/basics/qsql/
Here's an example.
In SQL:
In q: