Allow limiting number of displayed rows in SQL command