concept world in category sql

appears as: world
SQL Server MVP Deep Dives Vol. 2

This is an excerpt from Manning's book SQL Server MVP Deep Dives Vol. 2.

The penalty becomes much more expensive in the more common scenario of uneven distribution. In this scenario, you have customers from all over the world, but (being a US-based company) a large portion of them are from the US. For example, you may have 100,000 customers from 100 different countries, but 30,000 of them are from the US. The overall selectivity of the [CountryID] column is pretty high—on average, you have 1,000 customers from each country. This would lead the optimizer to perform an index seek, because it expects just 1,000 key lookups. But this would prove to be a poor decision for this particular country, because 30 times more lookups are required. The penalty becomes much worse when the pages are accessed in a nonsequential order, potentially causing excessive I/O and when subsequent operations (in more complex queries) rely on this far-off estimation to make additional plan choices.

Good examples of these can be found in the names of things. You can usually identify things by their names. Despite there being many Rob Farleys in the world, in many contexts my name is unique. On Twitter I’m @rob_farley, a handle that (hopefully quite obviously) no one else has. My profile also identifies me as user 14146019. In AdventureWorks, if I constrain the names of Product subcategories using a unique constraint, this is represented by a blue key icon in Object Explorer, as you can see in figure 2.

SQL Server MVP Deep Dives

This is an excerpt from Manning's book SQL Server MVP Deep Dives.

Itzik Ben-Gan is a Mentor and Co-Founder of Solid Quality Mentors. A SQL Server Microsoft MVP (Most Valuable Professional) since 1999, Itzik has delivered numerous training events around the world focused on T-SQL Querying, Query Tuning, and Programming. Itzik is the author of several books, including Microsoft SQL Server 2008: T-SQL Fundamentals, Inside Microsoft SQL Server 2008: T-SQL Querying, and Inside Microsoft SQL Server 2008: T-SQL Programming. He has written many articles for SQL Server Magazine as well as articles and white papers for MSDN. Itzik’s speaking activities include TechEd, DevWeek, SQLPASS, SQL Server Magazine Connections, various user groups around the world, and Solid Quality Mentors’ events, to name a few. Itzik is the author of Solid Quality Mentors’ Advanced T-SQL Querying, Programming and Tuning and T-SQL Fundamentals courses along with being a primary resource within the company for their T-SQL related activities.

SQL Server Integration Services (SSIS) is Microsoft’s enterprise extract, transform, and load (ETL) platform, and is used in large-scale business intelligence projects and small-scale import/export jobs around the world. Although SSIS contains an impressive set of features for solving a range of data-centric problems, one feature—expressions—stands out as the most important for SSIS developers to master.