Limit data to be displayed directly in the SQL queries.