Concept Flow - Index selection strategy
Start Query
Check WHERE clause
Are columns indexed?
No→Full Table Scan
Yes
Use Index to filter rows
Retrieve matching rows
Return results
The database checks if query columns have indexes to decide between scanning the whole table or using the index to quickly find rows.