17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8<br />

Being Normal:<br />

Normalization and Other<br />

Basic Design Issues<br />

I can imagine you as being somewhat perplexed about the how and why of some of the tables<br />

we’ve constructed thus far. With the exception of a chapter or two, this book has tended to have an<br />

online transaction-processing, or OLTP, flair to the examples. Don’t get me wrong; I will point out,<br />

from time to time, some of the differences between OLTP and its more analysis-oriented cousin<br />

Online Analytical Processing (OLAP). My point is that you will, in most of the examples, be seeing a<br />

table design that is optimized for the most common kind of database — OLTP. As such, the table<br />

examples will typically have a database layout that is, for the most part, normalized to what is<br />

called the third normal form.<br />

So what is “normal form”? We’ll be taking a very solid look at that in this chapter, but, for the<br />

moment, let’s just say that it means your data has been broken out into a logical, non-repetitive<br />

format that can easily be reassembled into the whole. In addition to normalization (which is the<br />

process of putting your database into normal form), we’ll also be examining the characteristics of<br />

OLTP and OLAP databases. And, as if we didn’t have enough between those two topics, we’ll also<br />

be looking at many examples of how the constraints we’ve already seen are implemented in the<br />

overall solution.<br />

This is probably going to be one of the toughest chapters in the book to grasp because of a paradox<br />

in what to learn first. Some of the concepts used in this chapter refer to things we’ll be covering<br />

later — such as triggers and stored procedures. On the other hand, it is difficult to relate those<br />

topics without understanding their role in database design.<br />

I strongly recommend reading this chapter through, and then coming back to it again after you’ve<br />

read several of the subsequent chapters.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!