Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn SQL Database Programming

You're reading from   Learn SQL Database Programming Query and manipulate databases from popular relational database servers using SQL

Arrow left icon
Product type Paperback
Published in May 2020
Publisher Packt
ISBN-13 9781838984762
Length 564 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Josephine Bush Josephine Bush
Author Profile Icon Josephine Bush
Josephine Bush
Arrow right icon
View More author details
Toc

Table of Contents (24) Chapters Close

Preface 1. Section 1: Database Fundamentals
2. Introduction to Relational Database Management Systems FREE CHAPTER 3. Installing and Using MySQL Workbench 4. Understanding Data Types 5. Designing and Creating a Database 6. Importing and Exporting Data 7. Section 2: Basic SQL Querying
8. Querying a Single Table 9. Querying Multiple Tables 10. Modifying Data and Table Structures 11. Section 3: Advanced SQL Querying
12. Working with Expressions 13. Grouping and Summarizing Data 14. Advanced Querying Techniques 15. Programmable Objects 16. Section 4: Presenting Your Findings
17. Exploring and Processing Your Data 18. Telling a Story with Your Data 19. Section 5: SQL Best Practices
20. Best Practices for Designing and Querying 21. SQL Appendix 22. Assessments 23. Other Books You May Enjoy

Understanding indexes

This section will take the reader through an explanation of what indexing is, how it relates to data integrity, and how it impacts performance.

Indexing is a method of optimizing database performance to boost the speed of database queries. Indexes are placed on column(s) in a table. Tables can have more than one index, but there tends to be an optimal number of indexes before indexes impair performance instead of helping it. The optimal number can vary depending on the table. This is why index tuning can be an art as well as a science. To properly index a table, you need an understanding of how to streamline the process of query results that are returned to a user.

It's good to plan out the indexing that you will need before adding data, if possible. When you add an index to an empty table, it adds it pretty much instantaneously. It can take quite a...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime