Several new special Vortex variables were introduced in Texis version 6. The sqlresult... variables (here) return more information from <sql> calls, and are more accurate than $rows.min and $rows.max. See the Vortex manual for details.
$rows.min
$rows.max