Sams Teach Yourself SQL in 24 Hours

( 5 )

Overview

Sams Teach Yourself SQL in 24 Hours, Third Edition presents the key features of SQL (Structured Query Language) in an easy to understand format with updated code examples, notes, diagrams, exercises, and quizzes. New material covers more information on transactions, constructs, embedded databases, and object-oriented programming. In this edition, the authors include examples based on a database like MySQL, a ...
See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (24) from $1.99   
  • New (2) from $65.00   
  • Used (22) from $1.99   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$65.00
Seller since 2014

Feedback rating:

(147)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
$65.00
Seller since 2014

Feedback rating:

(147)

Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Close
Sort by
Sams Teach Yourself SQL in 24 Hours

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study

Want a NOOK? Explore Now

NOOK Book (eBook)
$15.49
BN.com price
(Save 44%)$27.99 List Price
This digital version does not exactly match the physical book displayed here.

Overview

Sams Teach Yourself SQL in 24 Hours, Third Edition presents the key features of SQL (Structured Query Language) in an easy to understand format with updated code examples, notes, diagrams, exercises, and quizzes. New material covers more information on transactions, constructs, embedded databases, and object-oriented programming. In this edition, the authors include examples based on a database like MySQL, a very popular open source database.

Read More Show Less

Editorial Reviews

From Barnes & Noble
The Barnes & Noble Review
Whether you’re writing fancy new web database applications or simply need accurate (if boring) business reports, there’s no way around it: You need at least moderate fluency in SQL. Fortunately, SQL needn’t be intimidating. Mastering it doesn’t require you to spend a semester in a classroom -- not when there’s Sams Teach Yourself SQL in 24 Hours, Third Edition.

Ronald Plew and Ryan Stephens cover all the basics, starting with building databases that can be effectively queried, updated, and managed. They clearly introduce queries and the SELECT statement; then explain operators, aggregate functions, sorting, grouping, dates/times, joins, subqueries, and restructuring the appearance of your reported data.

You might be surprised just how far this book takes you. For example, in addition to a lesson on basic performance tuning, you’ll find individual lessons on using indexes, views, and the system catalog (a.k.a. data dictionary).

This edition reflects the current ANSI SQL 3 standard, includes improved examples and explanations, and provides hands-on exercises using the free, open source MySQL database wherever possible (i.e., everywhere MySQL is ANSI SQL compliant). Suddenly, it easy to practice even if you don’t happen to have Oracle 9i or SQL Server 2000 handy. Bill Camarda

Bill Camarda is a consultant, writer, and web/multimedia content developer. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks For Dummies®, Second Edition.

Read More Show Less

Product Details

  • ISBN-13: 9780672324420
  • Publisher: Sams
  • Publication date: 8/19/2002
  • Series: Sams Teach Yourself Series
  • Edition description: Older Edition
  • Edition number: 3
  • Pages: 472
  • Product dimensions: 7.42 (w) x 9.36 (h) x 1.08 (d)

Meet the Author

For more than 10 years, the authors have studied, applied, and documented the SQL standard and its application to critical database systems in this book.

Ryan Stephens and Ron Plew are entrepreneurs, speakers, and cofounders of Perpetual Technologies, Inc. (PTI), a fast-growing IT management and consulting firm. PTI specializes in database technologies, primarily Oracle and SQL servers running on all UNIX, Linux, and Microsoft platforms. Starting out as data analysts and database administrators, Ryan and Ron now lead a team of impressive technical subject matter experts who manage databases for clients worldwide. They authored and taught database courses for Indiana University-Purdue University in Indianapolis for five years and have authored more than a dozen books on Oracle, SQL, database design, and high availability of critical systems.

Arie D. Jones is the principal technology manager for Perpetual Technologies, Inc. (PTI) in Indianapolis, Indiana. Arie leads PTI’s team of experts in planning, design, development, deployment, and management of database environments and applications to achieve the best combination of tools and services for each client. He is a regular speaker at technical events and has authored several books and articles pertaining to database-related topics.

Read More Show Less

Read an Excerpt

IntroductionIntroduction

Welcome to the world of relational databases and SQL! This book is written for those self-motivated individuals out there who would like to get an edge on relational database technology by learning the Structured Query Language—SQL. This book was written primarily for those with very little or no experience with relational database management systems using SQL. This book also applies to those who have some experience with relational databases but need to learn how to navigate within the database, issue queries against the database, build database structures, manipulate data in the database, and more. This book is not geared toward individuals with significant relational database experience who have been using SQL on a regular basis.

What This Book Intends to Accomplish

This book was written for individuals with little or no experience using SQL or those who have used a relational database, but their tasks have been very limited within the realm of SQL. Keeping this thought in mind, it should be noted up front that this book is strictly a learning mechanism, and one in which we present the material from ground zero and provide examples and exercises with which to begin to apply the material covered. This book is not a complete SQL reference and should not be relied on as a sole reference of SQL. However, this book combined with a complete SQL command reference could serve as a complete solution source to all of your SQL needs.

What We Added to This Edition

This edition contains the same content and format as the first through third editions. We have been through the entire book, searching for the little things that could be improved to produce a better edition. We have also added concepts and commands from the new SQL standard, SQL:2003, to bring this book up to date, making it more complete and applicable to today's SQL user. The most important addition was the use of MySQL for hands-on exercises. By using an open source database such as MySQL, all readers have equal opportunity for participation in hands-on exercises.

What You Need

You might be wondering, what do I need to make this book work for me? Theoretically, you should be able to pick up this book, study the material for the current hour, study the examples, and either write out the exercises or run them on a relational database server. However, it would be to your benefit to have access to a relational database system to which to apply the material in each lesson. The relational database to which you have access is not a major factor because SQL is the standard language for all relational databases. Some database systems that you can use include Oracle, Sybase, Informix, Microsoft SQL Server, Microsoft Access, MySQL, and dBase.

Conventions Used in This Book

For the most part, we have tried to keep conventions in this book as simple as possible.

Many new terms are printed in italics.

In the listings, all code that you type in (input) appears in boldface monospace. Output appears in standard monospace. Any code that is serving as a placeholder appears in italic monospace.

SQL code and keywords have been placed in uppercase for your convenience and general consistency. For example:

SELECT
• FROM PRODUCTS_TBL;
PROD_ID PROD_DESC COST————— ——————————————————11235 WITCHES COSTUME 29.99222 LASTIC PUMPKIN 18 INCH 7.7513 FALSE PARAFFIN TEETH 1.190 LIGHTED LANTERNS 14.515 ASSORTED COSTUMES 109 CANDY CORN 1.356 PUMPKIN CANDY 1.4587 PLASTIC SPIDERS 1.05119 ASSORTED MASKS 4.959 rows selected.

The following special design features enhance the text:

There are syntax boxes to draw your attention to the syntax of the commands discussed during each hour.

SELECT ALL
• DISTINCT COLUMN1, COLUMN2 FROM TABLE , TABLE2 ;

Note - Notes are provided to expand on the material covered in each hour of the book.

Caution - Cautions are provided to warn the reader about "disasters" that could occur and certain precautions that should be taken.

Tip - Tips are also given to supplement the material covered during appropriate hours of study.

ANSI SQL and Vendor Implementations

One thing that is difficult about writing a book like this on standard SQL is that although there is an ANSI standard for SQL, each database vendor has its own implementation of SQL. With each implementation come variations from the actual standard, enhancements to the standard, and even missing elements from the standard.

The expected question is, "Because there is an ANSI standard for SQL, what is so difficult about teaching standard SQL?" The answer to this question begins with the statement that ANSI SQL is just that: a standard. ANSI SQL is not an actual language. To teach you SQL, we had to come up with examples and exercises that involve using one or more implementations of SQL. Because each vendor has its own implementation with its own specifications for the language of SQL, these variations, if not handled properly in this book, could actually cause confusion concerning the syntax of various SQL commands. Therefore, we have tried to stay as close to the ANSI standard as possible, foremost discussing the ANSI standard and then showing examples from different implementations that are very close, if not the same, as the exact syntax that ANSI prescribes.

We have, however, accompanied examples of variations among implementations with notes for reminders and tips on what to watch out for. Just remember this: Each implementation differs slightly from other implementations. The most important thing is that you understand the underlying concepts of SQL and its commands. Although slight variations do exist, SQL is basically the same across the board and is very portable from database to database, regardless of the particular implementation.

Understanding the Examples and Exercises

We have chosen to use MySQL for most of the examples in this book due to its high compliance to the ANSI standard; however, we have also shown examples from Oracle, Sybase, Microsoft SQL Server, and dBase.

The use of MySQL for hands-on exercises was chosen so that all readers may participate, with minimal confusion in converting SQL syntax into the proper syntax of the database each reader is using. MySQL was chosen for exercises because it is an open source database (free), it is easy to install, and its syntax is very similar to that of the ANSI Standard. Additionally, MySQL is compatible with most operating system platforms.

In Appendix B, "Using MySQL for Exercises," we show you how to obtain and install MySQL. After it is installed on your computer, MySQL can be used for most of the exercises in this book. Unfortunately, because MySQL is not fully ANSI SQL compliant, MySQL exercises are not available for every subject.

As stated, some differences in the exact syntax exist among implementations of SQL. For example, if you attempt to execute some examples in this book, you might have to make minor modifications to fit the exact syntax of the implementation that you are using. We have tried to keep all the examples compliant with the standard; however, we have intentionally shown you some examples that are not exactly compliant. The basic structure for all the commands is the same. To learn SQL, you have to start with an implementation using practical examples. For hands-on practice, we use MySQL. If you have access to another database implementation such as Oracle, we encourage its use for hands-on exercises. You should be able to emulate the database and examples used in this book without much difficulty. Any adjustments that you might have to make to the examples in this book to fit your implementation exactly will only help you to better understand the syntax and features of your implementation.

Good luck!

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Table of Contents

Introduction 1
Pt. I A SQL Concepts Overview 5
Hour 1 Welcome to the World of SQL 7
Pt. II Building Your Database 25
Hour 2 Defining Data Structures 27
Hour 3 Managing Database Objects 41
Hour 4 The Normalization Process 61
Hour 5 Manipulating Data 71
Hour 6 Managing Database Transactions 85
Pt. III Getting Effective Results from Queries 97
Hour 7 Introduction to the Database Query 99
Hour 8 Using Operators to Categorize Data 115
Hour 9 Summarizing Data Results from a Query 139
Hour 10 Sorting and Grouping Data 149
Hour 11 Restructuring the Appearance of Data 161
Hour 12 Understanding Dates and Times 183
Pt. IV Building Sophisticated Database Queries 199
Hour 13 Joining Tables in Queries 201
Hour 14 Using Subqueries to Define Unknown Data 219
Hour 15 Combining Multiple Queries into One 235
Pt. V SQL Performance Tuning 251
Hour 16 Using Indexes to Improve Performance 253
Hour 17 Improving Database Performance 263
Pt. VI Using SQL to Manage Users and Security 279
Hour 18 Managing Database Users 281
Hour 19 Managing Database Security 293
Pt. VII Summarized Data Structures 309
Hour 20 Creating and Using Views and Synonyms 311
Hour 21 Working with the System Catalog 327
Pt. VIII Applying SQL Fundamentals in Today's World 339
Hour 22 Advanced SQL Topics 341
Hour 23 Extending SQL to the Enterprise, the Internet, and the Intranet 355
Hour 24 Extensions to Standard SQL 365
Pt. IX Appendixes 375
App. A Common SQL Commands 377
App. B Using MySQL for Exercises 383
App. C Answers to Quizzes and Exercises 387
App. D Create Table Statements for Book Examples 431
App. E Insert Statements for Data in Book Examples 435
App. F: Glossary 441
App. G: Bonus Exercises 445
Index 451
Read More Show Less

Preface

Introduction

Welcome to the world of relational databases and SQL! This book is written for those self-motivated individuals out there who would like to get an edge on relational database technology by learning the Structured Query Language—SQL. This book was written primarily for those with very little or no experience with relational database management systems using SQL. This book also applies to those who have some experience with relational databases but need to learn how to navigate within the database, issue queries against the database, build database structures, manipulate data in the database, and more. This book is not geared toward individuals with significant relational database experience who have been using SQL on a regular basis.

What This Book Intends to Accomplish

This book was written for individuals with little or no experience using SQL or those who have used a relational database, but their tasks have been very limited within the realm of SQL. Keeping this thought in mind, it should be noted up front that this book is strictly a learning mechanism, and one in which we present the material from ground zero and provide examples and exercises with which to begin to apply the material covered. This book is not a complete SQL reference and should not be relied on as a sole reference of SQL. However, this book combined with a complete SQL command reference could serve as a complete solution source to all of your SQL needs.

What We Added to This Edition

This edition contains the same content and format as the first through third editions. We have been through the entire book, searching for the little things that could be improved to produce a better edition. We have also added concepts and commands from the new SQL standard, SQL:2003, to bring this book up to date, making it more complete and applicable to today's SQL user. The most important addition was the use of MySQL for hands-on exercises. By using an open source database such as MySQL, all readers have equal opportunity for participation in hands-on exercises.

What You Need

You might be wondering, what do I need to make this book work for me? Theoretically, you should be able to pick up this book, study the material for the current hour, study the examples, and either write out the exercises or run them on a relational database server. However, it would be to your benefit to have access to a relational database system to which to apply the material in each lesson. The relational database to which you have access is not a major factor because SQL is the standard language for all relational databases. Some database systems that you can use include Oracle, Sybase, Informix, Microsoft SQL Server, Microsoft Access, MySQL, and dBase.

Conventions Used in This Book

For the most part, we have tried to keep conventions in this book as simple as possible.

Many new terms are printed in italics.

In the listings, all code that you type in (input) appears in boldface monospace. Output appears in standard monospace. Any code that is serving as a placeholder appears in italic monospace.

SQL code and keywords have been placed in uppercase for your convenience and general consistency. For example:

SELECT
• FROM PRODUCTS_TBL;
PROD_ID PROD_DESC COST---------- ------------------------------------11235 WITCHES COSTUME 29.99222 LASTIC PUMPKIN 18 INCH 7.7513 FALSE PARAFFIN TEETH 1.190 LIGHTED LANTERNS 14.515 ASSORTED COSTUMES 109 CANDY CORN 1.356 PUMPKIN CANDY 1.4587 PLASTIC SPIDERS 1.05119 ASSORTED MASKS 4.959 rows selected.

The following special design features enhance the text:

There are syntax boxes to draw your attention to the syntax of the commands discussed during each hour.

SELECT ALL
• DISTINCT COLUMN1, COLUMN2 FROM TABLE , TABLE2 ;


Note - Notes are provided to expand on the material covered in each hour of the book.



Caution - Cautions are provided to warn the reader about "disasters" that could occur and certain precautions that should be taken.



Tip - Tips are also given to supplement the material covered during appropriate hours of study.


ANSI SQL and Vendor Implementations

One thing that is difficult about writing a book like this on standard SQL is that although there is an ANSI standard for SQL, each database vendor has its own implementation of SQL. With each implementation come variations from the actual standard, enhancements to the standard, and even missing elements from the standard.

The expected question is, "Because there is an ANSI standard for SQL, what is so difficult about teaching standard SQL?" The answer to this question begins with the statement that ANSI SQL is just that: a standard. ANSI SQL is not an actual language. To teach you SQL, we had to come up with examples and exercises that involve using one or more implementations of SQL. Because each vendor has its own implementation with its own specifications for the language of SQL, these variations, if not handled properly in this book, could actually cause confusion concerning the syntax of various SQL commands. Therefore, we have tried to stay as close to the ANSI standard as possible, foremost discussing the ANSI standard and then showing examples from different implementations that are very close, if not the same, as the exact syntax that ANSI prescribes.

We have, however, accompanied examples of variations among implementations with notes for reminders and tips on what to watch out for. Just remember this: Each implementation differs slightly from other implementations. The most important thing is that you understand the underlying concepts of SQL and its commands. Although slight variations do exist, SQL is basically the same across the board and is very portable from database to database, regardless of the particular implementation.

Understanding the Examples and Exercises

We have chosen to use MySQL for most of the examples in this book due to its high compliance to the ANSI standard; however, we have also shown examples from Oracle, Sybase, Microsoft SQL Server, and dBase.

The use of MySQL for hands-on exercises was chosen so that all readers may participate, with minimal confusion in converting SQL syntax into the proper syntax of the database each reader is using. MySQL was chosen for exercises because it is an open source database (free), it is easy to install, and its syntax is very similar to that of the ANSI Standard. Additionally, MySQL is compatible with most operating system platforms.

In Appendix B, "Using MySQL for Exercises," we show you how to obtain and install MySQL. After it is installed on your computer, MySQL can be used for most of the exercises in this book. Unfortunately, because MySQL is not fully ANSI SQL compliant, MySQL exercises are not available for every subject.

As stated, some differences in the exact syntax exist among implementations of SQL. For example, if you attempt to execute some examples in this book, you might have to make minor modifications to fit the exact syntax of the implementation that you are using. We have tried to keep all the examples compliant with the standard; however, we have intentionally shown you some examples that are not exactly compliant. The basic structure for all the commands is the same. To learn SQL, you have to start with an implementation using practical examples. For hands-on practice, we use MySQL. If you have access to another database implementation such as Oracle, we encourage its use for hands-on exercises. You should be able to emulate the database and examples used in this book without much difficulty. Any adjustments that you might have to make to the examples in this book to fit your implementation exactly will only help you to better understand the syntax and features of your implementation.

Good luck!

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Customer Reviews

Average Rating 2.5
( 5 )
Rating Distribution

5 Star

(1)

4 Star

(1)

3 Star

(0)

2 Star

(1)

1 Star

(2)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 5 Customer Reviews
  • Anonymous

    Posted June 29, 2007

    Typos and bad code

    This book is filled with typos and bad code. If you are trying to teach yourself SQL, as the title suggests, this is extremely frustrating.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 4, 2004

    Easy for me - software QA novice

    I come from a technical writing background with minimal programming experience. Recently became the QA on a database project. This book covers the concepts in a really easy format that does not overwhelm. I like the excercises at the end because I can see if I really 'got' the information. Yes, I found many typos (I don't know about omissions), but they were easily corrected. I also found the book extemely easy to pick up on a moments notice and 'study' for 20-30 minutes: the information is structured such that the reader can 'come away' with something, no matter how limited the time is. As an aside, I had the book bound in a spiral binding, which made it much easier to study. I have no doubt that much is left out, but I can use the information I learned in a practical way on the job. I hope to followup with a slightly more advanced text that focuses on Transact SQL.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 29, 2003

    Mistakes and Overly Simplistic Examples Make This Book a Loser

    Give this book a miss. While the format was okay, the text contains an incredible number of mistakes and omissions. Consequently, examples, explanations, and exercises often make no sense. Also, many examples tend to be simplistic to the point of stupidity. They confer minimal educational value. Spend your time and money on a book with better content that has been more rigorously proofed.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted December 10, 1999

    Great for DB rookies.

    I've read several of Sams' 'Teach Yourself' series and would have to say this is one of the better ones. The authors provide solid explanations of database basics, as well as SQL's more advanced features. The one drawback is that SQL's syntax varies among db packages. So, the examples won't always work for you. But this book lives up to its title.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted July 1, 2011

    No text was provided for this review.

Sort by: Showing all of 5 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)