Skip to Main Content
Learn T-SQL Querying
book

Learn T-SQL Querying

by Pedro Lopes, Pam Lahoud
May 2019
Intermediate to advanced content levelIntermediate to advanced
484 pages
11h 23m
English
Packt Publishing
Content preview from Learn T-SQL Querying

Query considerations

Once we have primary and foreign key indexes in place, the next step is to create additional non-clustered indexes to support queries in the database. This is generally going to be done later in the development process because we won't know what queries will be executed against the database until the application is more mature. We may be able to anticipate which non-clustered indexes are needed in some cases, but, for the most part, the way to index for queries is to test the system with a dataset that is representative of the anticipated production data and analyze the query execution plans. Be sure that columns being used for joins and filter predicates are indexed, and follow the guidelines listed previously as to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn T-SQL Querying - Second Edition

Learn T-SQL Querying - Second Edition

Pedro Lopes, Pam Lahoud
SQL Server T-SQL Recipes, Fourth Edition

SQL Server T-SQL Recipes, Fourth Edition

Jason Brimhall, Jonathan Gennick, Wayne Sheffield

Publisher Resources

ISBN: 9781789348811Supplemental Content