min_n()
URL: llms-txt#min_n()
===== PAGE: https://docs.tigerdata.com/api/_hyperfunctions/min_n/intro/ =====
Get the N smallest values from a column.
The min_n() functions give the same results as the regular SQL query SELECT ... ORDER BY ... LIMIT n. But unlike the SQL query, they can be composed and combined like other aggregate hyperfunctions.
To get the N largest values, use [max_n()][max_n]. To get the N smallest values with accompanying data, use [min_n_by()][min_n_by].
===== PAGE: https://docs.tigerdata.com/api/_hyperfunctions/min_n/into_array/ =====