Suppose that we have a table called agents and an integer column called commission with 100000 rows, and then we will do the following query:
SELECT *
FROM agents
WHERE commission > 5;
Will the database iterate through all the rows in the table? this can be very slow if we have many rows. I am working with SQLite
 
    