0%

Book Description

If you use SQL in your day-to-day work as a data analyst, data scientist, or data engineer, this popular pocket guide is the ideal on-the-job reference. You'll find many examples that address the language's complexities, along with key aspects of SQL used in Microsoft SQL Server, MySQL, Oracle Database, PostgreSQL, and SQLite.

The updated edition describes how these database management systems implement SQL syntax for both querying and making changes to a database. You'll find details on data types and conversions, regular expression syntax, window functions, pivoting and unpivoting, and more.

  • Quickly look up how to perform specific tasks using SQL
  • Apply the book's syntax examples to your own queries
  • Update SQL queries to work in five different database management systems
  • NEW: Connect Python and R to a relational database
  • NEW: Look up frequently asked SQL questions in the "How Do I?" chapter

The book's example SQL statements execute against a set of tables, with data that you can quickly download.

Table of Contents

  1. Preface
    1. Why SQL?
    2. Goals of This Book
    3. Updates to the Fourth Edition
  2. 1. SQL Crash Course
    1. What is a Database?
      1. SQL
      2. NoSQL
      3. Database Management Systems (DBMS)
    2. An SQL Query
      1. The SELECT Statement
      2. Order of Execution
    3. A Data Model
  3. 2. Where Can I Write SQL Code?
    1. RDBMS Software
      1. SQLite
      2. MySQL
      3. PostgreSQL
      4. Microsoft SQL Server
      5. Oracle
    2. Database Tools
      1. Connect a Database Tool to a Database
    3. Other Programming Languages
      1. Connect Python to a Database
      2. Connect R to a Database
3.145.12.242