Welcome tag moderator AKA Unofficial DEV cheerleader. While most of my friends are found on SnapChat or Tic-Toc, you can find me here. And I OOP, but I’m not a VSCO girl.
Once a table is indexed based on a column field, a lookup table would be created that references the normal SQL table through the row address column.
So, for example if there are multiple instances of transaction amount, the row address in the lookup table would be pointing to the exact multiple row instance in the transaction table.
Therefore,
Select * from transaction where transactionAmount = 5000
For a multiple resultset won't be a table scan.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Oldest comments (4)
Your sketches are awesome and very clear.
Thanks Katie for the feedback:)
What happens if there is more than one result?
Good question Giuliovn.
Once a table is indexed based on a column field, a lookup table would be created that references the normal SQL table through the row address column.
So, for example if there are multiple instances of transaction amount, the row address in the lookup table would be pointing to the exact multiple row instance in the transaction table.
Therefore,
Select * from transaction where transactionAmount = 5000
For a multiple resultset won't be a table scan.