Books, the Dewey Decimal System, and…SQL Server?

SQL Server
5 Comments

I have been in love with books and libraries most of my life.

I remember some of my earliest favorites: Little House on the Prairie, Anne of Green Gables, Bridge to Terebithia, The Chronicles of Narnia. I remember feeling grown up when my sixth grade teacher handed me Gone With the Wind.

booksI would read anytime and anywhere. While eating breakfast at the dining room table. Sitting on the swings. Walking through the halls at school. In the car on road trips. At dinner, much to my mother’s frustration. In bed, under the covers, with a flashlight. Books were my first love.

During summer vacations, my mom took me and my sisters to the library weekly. Even though I lived in a tiny town with a tiny library, this was my favorite day each week. I read entire series and genres. One summer I worked through all the Nancy Drew and Hardy Boys novels; another summer I read every Zane Grey and Louis L’Amour book I could get my hands on.

At the age of 12, I was asked to work in the school library, in place of a study hall. I kept the job for two years, and loved every moment of it. I had many tasks, from putting away returned books to checking people out. The fun of stamping the “return by date” cards remains in my memory to this day. (Ask me how this is related to Indiana Jones someday.)

Working in the library was my first introduction to indexes. Not just the index at the back of the book, either. There was the venerable and mysterious card catalog.

The words “Dewey Decimal system” still lead me to link numbers and subjects. 920’s are biographies, for example. (I remember reading George Armstrong Custer’s at least three times. I went through a biography phase.) Every book is assigned a number – a class and a section. Call numbers can be assigned. To find a book, you need to know some information about it – you need to traverse the index!

Think of the Dewey Decimal classification for a book being a clustered index. It’s unique for each book, and tells the librarian what order it should be placed in on the shelf. When looking for a specific book, you look it up in the card catalog, then walk to that area of the library – no wandering around, looking through piles of random books (like heaps!).

But what if I want to find all books by a specific author, or on a certain topic? The card catalog gives you cards organized by last name, and topic, which are like nonclustered indexes. If you were looking for a book written by me, you could flip through “B” to find “Borland”. My card would include the book title, topic, and the number. This is essentially a nonclustered index – it points to the clustered index, where I can find the book on the shelf.

I want a card catalog for my living room.

Just like a library would be a mess and books would be almost impossible to find without the Dewey Decimal system, the information in your database is going to be much harder to find – and slower to return – without indexes.

Want to learn more about indexes? It’s one of our favorite topics here at Brent Ozar Unlimited®! Visit our Index This page for more resources!

Previous Post
Our PASS Summit 2012 Schedule
Next Post
#SQLPASS Summit Keynote Liveblog – Day 1

5 Comments. Leave new

  • Thanks for making the concept of indexs and files to the Dewey Decimal System. The older that I get I realize that it the communication/language between the professionals of the 80’s, 90’s and today.

    Dewey Decimal System is the tool I used everyday to learn and gain an education. By not making this connection, leaves a chasm/divide between the men and women who put a man on the moon and the manipulation of data today. There is no end product but goals, outcomes, etc.

    Where manipulation of data is necessary, it simply stores information. The Dewey Decimal System was the index to the BOOKs that the information is stored and is available to be read by any person with new idea and inventions.

    Reply
  • thanks for reminding me my college days at library. I like the way you explained the index with the library book keeping methodology.

    I enjoy reading this article.

    Reply
  • I spent 3-4 years at our local public library shelving books and internalizing the Dewey Decimal System as a high school / college student. I’d heard numerous illustrations of the conceptual difference between clustered and non-clustered indexes (table of contents vs book index, etc) but for me at least, this was the clearest example. A library really is the ultimate analog database!

    Reply
  • Michael Leavitt
    September 1, 2019 12:21 pm

    I am trying to organize my own personal library using the DDS. Is there a good website other than Library of Congress to find the Dewey number? I have some books that LC doesn’t have or doesn’t have a DDS number for.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.