Shop Viral Tech & Accessories
Buy New
To see product details, add this item to your cart.
Ships from: Amazon.com
Sold by: Amazon.com
To see product details, add this item to your cart. You can always remove it later.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
30-day refund / replacement
30-day refund / replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Read full return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
To see product details, add this item to your cart. You can always remove it later.
Very good condition. Light wear. May not include CD DVD, access code or any other supplemental materials. Very good condition. Light wear. May not include CD DVD, access code or any other supplemental materials. See less
Access codes and supplements are not guaranteed with used items.
Ships from and sold by Vivé Liber Books LLC.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • Learning SQL: Generate, Manipulate, and Retrieve Data

Follow the authors

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Learning SQL: Generate, Manipulate, and Retrieve Data 3rd Edition

4.6 out of 5 stars (586)

Purchase options and add-ons

As data floods into your company, you need to put it to work right away―and SQL is the best tool for the job. With the latest edition of this introductory guide, author Alan Beaulieu helps developers get up to speed with SQL fundamentals for writing database applications, performing administrative tasks, and generating reports. You’ll find new chapters on SQL and big data, analytic functions, and working with very large databases.

Each chapter presents a self-contained lesson on a key SQL concept or technique using numerous illustrations and annotated examples. Exercises let you practice the skills you learn. Knowledge of SQL is a must for interacting with data. With Learning SQL, you’ll quickly discover how to put the power and flexibility of this language to work.

  • Move quickly through SQL basics and several advanced features
  • Use SQL data statements to generate, manipulate, and retrieve data
  • Create database objects, such as tables, indexes, and constraints with SQL schema statements
  • Learn how datasets interact with queries; understand the importance of subqueries
  • Convert and manipulate data with SQL’s built-in functions and use conditional logic in data statements

Frequently bought together

This item: Learning SQL: Generate, Manipulate, and Retrieve Data
$36.49
Get it as soon as Wednesday, Jun 10
In Stock
Ships from and sold by Amazon.com.
+
$36.49
Get it as soon as Wednesday, Jun 10
In Stock
Ships from and sold by Amazon.com.
+
$41.99
Get it as soon as Wednesday, Jun 10
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Customers also bought or read

Loading...

From the brand


From the Publisher

SQL, data

From the Preface

Programming languages come and go constantly, and very few languages in use today have roots going back more than a decade or so. Some examples are COBOL, which is still used quite heavily in mainframe environments; Java, which was born in the mid-1990s and has become one of the most popular programming languages; and C, which is still quite popular for operating systems and server development and for embedded systems. In the database arena, we have SQL, whose roots go all the way back to the 1970s.

SQL was initially created to be the language for generating, manipulating, and retrieving data from relational databases, which have been around for more than 40 years. Over the past decade or so, however, other data platforms such as Hadoop, Spark, and NoSQL have gained a great deal of traction, eating away at the relational database market.

As will be discussed in the last few chapters of this book, however, the SQL language has been evolving to facilitate the retrieval of data from various platforms, regardless of whether the data is stored in tables, documents, or flat files.

Why Learn SQL?

Whether you will be using a relational database or not, if you are working in data science, business intelligence, or some other facet of data analysis, you will likely need to know SQL, along with other languages/platforms such as Python & R. Data is everywhere, in huge quantities, and arriving at a rapid pace, & people who can extract meaningful information from all this data are in big demand.

Why Use This Book to Do It?

There are plenty of books out there that treat you like an idiot, or some other flavor of simpleton, but these books tend to just skim the surface. At the other end of the spectrum are reference guides that detail every permutation of every statement in a language, which can be useful if you already have a good idea of what you want to do but just need the syntax. This book strives to find the middle ground, starting with some background of the SQL language, moving through the basics, and then progressing into some of the more advanced features that will allow you to really shine. Additionally, this book ends with a chapter showing how to query data in nonrelational databases, which is a topic rarely covered in introductory books.

Editorial Reviews

About the Author

Alan Beaulieu has been designing, building, and implementing custom database applications for over 25 years. He is the author of Learning SQL and Mastering Oracle SQL (O’Reilly), and has written an online course on SQL for the University of California. He currently runs his own consulting company that specializes in database design and development in the fields of Financial Services and Telecommunications. Alan has a Bachelor of Science degree in Operations Research from the Cornell University School of Engineering. He lives in Massachusetts with his wife and two daughters.

Product details

  • Publisher ‏ : ‎ O'Reilly Media
  • Publication date ‏ : ‎ April 21, 2020
  • Edition ‏ : ‎ 3rd
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 377 pages
  • ISBN-10 ‏ : ‎ 1492057614
  • ISBN-13 ‏ : ‎ 978-1492057611
  • Item Weight ‏ : ‎ 1.35 pounds
  • Dimensions ‏ : ‎ 7 x 1 x 9.25 inches
  • Best Sellers Rank: #55,411 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.6 out of 5 stars (586)

About the authors

Follow authors to get new release updates, plus improved recommendations.

Customer reviews

4.6 out of 5 stars
586 global ratings

Customers say

Customers find the book comprehensive, with one mentioning it includes plenty of examples in each chapter. They appreciate its content, with one customer noting it's excellent for SQL beginners.
AI Generated from the text of customer reviews

Select to learn more

8 customers mention comprehensive, 7 positive, 1 negative
Customers find the book comprehensive, with one mentioning it is loaded with SQL information and includes plenty of examples in each chapter.
Excellent book, quite thoroughRead more
Comprehensive and readable....Read more
Very useful for beginners.Read more
Used for work to expand my SQL knowledge. The book uses MySQL as its practice, but provides concepts of what can be done in MS or Oracle as well....Read more
6 customers mention content, 6 positive, 0 negative
Customers find the book excellent, particularly noting its value for SQL beginners.
I'm really enjoying this book. I have zero SQL experience, and have read up to chapter 9 in the book....Read more
Excellent book, quite thoroughRead more
It is a really nice book for anyone who wants to begin in the SQL world and its nuances. Totally recommend!Read more
...Data Analyst and coming from a non-CS background, this is just the best SQL book, to begin with....Read more

Top reviews from the United States

  • 5 out of 5 stars
    Excellent Book as a SQL noob; might struggle if complete SW noob
    Reviewed in the United States on March 24, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I'm really enjoying this book. I have zero SQL experience, and have read up to chapter 9 in the book. If I browse StackOverflow for SQL related tags, I can understand a good number of the questions and have even been able to answer a couple (a lot of the questions are people trying to figure out how to write a query to get a specific result).

    I think the book is very well written, and there are plenty of examples in each chapter. The book uses MySQL and I elected to use Postgres (you can find a sakila port on github) to intentionally run into errors and struggle. Outside of some MySQL and Oracle specific stuff, you either directly use the code in Postgres or look at the Postgres documentation and figure out the syntax differences.

    That being said, my biggest issue with the book is that there are not a lot of exercises. Each chapter only has 3. Also, because I have SW development experience I know how to use the cli. Someone without SW experience will install MySQL, try to follow the cli commands in MySQL shell and get frustrated by it not working. If that is you, you'll have to find the installation location of MySQL (or Postgres), go to the bin folder, which should have multiple exes, and add that location to your PATH environment variable. Then you should be able to run commands like mysql or psql from your command line terminal. I only mention this because I remember seeing a review where someone rated this book as 1 star and said the information was out of date.

    34 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    So good that I wore out the print version
    Reviewed in the United States on January 5, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Oreilly has always been great quality when it comes to technical topics but this book goes above and beyond. It is loaded to the gills with SQL info - everything from design, queries, DB admin, and more. This is the book you want on your bookshelf when dealing with MySQL/MariaDB databases. I find myself referencing this book daily in my job. It is THAT good.

    Here is the Table of Contents:

    Creating and Populating a Database

    Query Primer

    Filtering

    Querying Multiple Tables

    Working with Sets

    Data Generation, Manipulation, and Conversion

    Grouping and Aggregates

    Subqueries

    Joins Revisited

    Conditional Logic

    Transactions

    Indexes and Constraints

    Views

    Metadata

    Analytic Functions

    Working with Large Databases

    SQL and Big Data

    For a book that is only 376 pages, it covers a TON of stuff. I highly recommend for anybody who touches MySQL or MariaDB databases.

    16 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Learn to be a SQL Expert!
    Reviewed in the United States on November 9, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Comprehensive and readable. Best audience is anyone who has been in tech for a couple of years but wants to learn SQL in depth or switch careers to DB admin.

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Very good for an introduction
    Reviewed in the United States on August 17, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    It is a really nice book for anyone who wants to begin in the SQL world and its nuances. Totally recommend!

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Exactly what you woud expect.
    Reviewed in the United States on July 3, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Like most O'Reilly products, clear concise and accurate.

    One person found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Just learn SQL...
    Reviewed in the United States on March 16, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    As a Data Analyst and coming from a non-CS background, this is just the best SQL book, to begin with. Although, I have amassed some experience programming in a couple of Languages. Overall, loving this book and keep loving it...

    29 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Excellent
    Reviewed in the United States on November 10, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Very useful for beginners.

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Excellent mid level book
    Reviewed in the United States on February 16, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Excellent. Although this seems to be a book for someone who is slightly experienced with SQL coming into reading rather than a beginner. It is strange that the author does not use alias in his notation.

    11 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

Top reviews from other countries

    Translated by Amazon
    See original
  • 5 out of 5 stars
    Incomplete
    Reviewed in Mexico on April 6, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Book starts at page 53

    Incomplete
    5 out of 5 stars
    Incomplete
    Reviewed in Mexico on April 6, 2024

    Book starts at page 53

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Good product but packaging needs to be upgraded
    Reviewed in India on February 9, 2026
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Good quality product received. The packaging needs to be upgraded, but the overall delivery experience and quality of book is good.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 1 out of 5 stars
    No es serio
    Reviewed in Spain on July 9, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Muy mal. Para empezar al libro que me entregaron le faltaban 15 páginas, esto no es serio cuando se está vendiendo por más de 40 euros un libro de tapa blanda de unas 350 páginas.

    En cuanto al contenido en sí, no está mal PERO para un libro que ya va en su tercera edición y, de nuevo, tiene un precio de más de 40 euros, se espera un mayor cuidado y menos erratas. Por ejemplo en la página 11 (literalmente el primer ejemplo de consulta SQL), el nombre que se utiliza para referirse a una tabla no coincide con el nombre que se le había dado a esa tabla un par de páginas atrás... más erratas de este y otros estilos a lo largo del libro.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
    Translated from Spanish by Amazon
    See original
  • 5 out of 5 stars
    Worth every cent!!
    Reviewed in Australia on December 28, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Excellent read

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Nice
    Reviewed in Italy on April 13, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Gives a complete overview of the language, to know the texture of the setup ambience.

    Sending feedback...
    Thanks, we'll investigate in the next few days.