Most questions ask whether the index is the right one for the query (good fit) or not (bad fit).
If you think about changing a query to improve performance, the new query must still return the same result. That includes all columns if select *
is used.
You can’t learn everything in one day. Subscribe the newsletter via E-Mail, Bluesky or RSS to gradually catch up. Have a look at modern-sql.com as well.
About the Author

Markus Winand provides insights into SQL and shows how different systems support it at modern-sql.com. Previously he made use-the-index-luke.com, which is still actively maintained. Markus can be hired as trainer, speaker and consultant via winand.at.