Indexes are lookup tables that when used speed up data retrival within a voluminous table.
I'll appreciate your feedback so I can improve on the sketches.
For further actions, you may consider blocking this person and/or reporting abuse
Pentest Testing Corp -
Pranav Bakare -
GrahamTheDev -
Ankur Singh -
Top comments (4)
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.
Your sketches are awesome and very clear.
Thanks Katie for the feedback:)