A step-by-step guide that will help you manage data in a relational database using SQL with ease
Key Features
Understand the concepts related to relational databases.
Learn how to install MariaDB and MySQL on Windows, Linux and tools to access it.
Learn how to connect Python and Pandas to MySQL/MariaDB.
Description
This book starts with the concepts in RDBMS (Relational Database Management Systems) and SQL (Structured Query Language). The first few chapters cover the definitions and a brief explanation of all the important concepts. They also cover the installation of MariaDB and MySQL on Windows and Raspberry Pi, as well as the setup of various tools used to connect to MySQL and MariaDB server processes. We will also understand how to install sample schemas and how to use basic SQL queries. Then we move on to the SELECT query in detail. The book explores the data retrieval aspect of SQL queries in detail with the WHERE clause and NULL handling in detail. The book also explores the functions available in MySQL. Those are single row and group functions. Then we explore how to combine the data from multiple sources. The technique is known as Joins, and we will learn ANSI style and the old-style syntax for all the types of Joins.
The last part explores the DDL and DMLs in depth. We also learn the concepts of Transactions and Constraints. The book explores how we can run the SQL queries from a Python 3 program and load a pandas DataFrame with the data from a table in a schema in the MySQL database.
What will you learn
Understand the basics of MySQL and MariaDB.
Get familiar with MySQL Arithmetic Operators, DDL, DML, DCL & TCL commands.
Understand the concept of Single-Row Functions and Group Functions in detail.
Retrieve data from multiple sources using the Joins.
Who this book is for
This book is designed for beginners as well as professionals alike. The book will also be useful to Data Scientists, Data Analysts, Database Administrators, and Data Engineers.
Table of
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A patient, hands-on introduction to SQL using MySQL and MariaDB, taking you from installing a server to querying, joining, and modifying data—then wiring it all into Python and Pandas. Best for beginners, analysts, and data professionals who want practical database skills rather than theory.
【Book Arc】
- **Opening (~0%–14%)**: Establishes the ground floor—what relational databases, DBMS/RDBMS/ORDBMS, and SQL actually are—then walks through installing MySQL and MariaDB on Windows, Debian, and Raspberry Pi Raspbian, including sample schemas.
- **Early (~14%–29%)**: Gets you connected. Covers client tools (MySQL Workbench, HeidiSQL, command prompt, remote instances) and the first basic queries, so you can run SQL against a live server before going deeper.
- **Middle (~29%–57%)**: The retrieval core. Selection vs. projection, the WHERE clause and wildcards, NULL semantics, then single-row functions (string, number, CASE) and group functions with GROUP BY and HAVING.
- **Late (~57%–71%)**: Combining data from multiple sources—all join types in both ANSI and old-style syntax, natural joins, and subqueries including nested and correlated forms, with guidance on when joins beat subqueries.
- **Ending (~71%–100%)**: The write side and integration—DDL/DML, constraints, transactions (DCL/TCL), views, and running SQL from Python 3 to load results into a Pandas DataFrame.
【Key Takeaways】
- **Installation is treated as a first-class skill, not a footnote** (Opening): the book deliberately covers MySQL and MariaDB across Windows, Linux, and Raspberry Pi, plus tool setup, so you can actually run every example. (Opening)
- **MariaDB is a drop-in MySQL replacement** (Early): same SQL syntax, interfaces, tools, and even data files—useful context for choosing a stack or migrating. (Early)
- **Selection and projection are distinct relational operations** (Middle): filtering rows (WHERE) versus choosing columns is framed in proper relational terminology, grounding later query work. (Middle)
- **NULL is a state, not a value** (Middle): the book stresses that NULL means absence—not zero or empty string—and shows how group functions silently ignore NULLs, plus a NULLIF workaround. (Middle)
- **Single-row vs. group functions is the key functional split** (Middle): single-row functions return one row per input row; group functions collapse a set into one row, and HAVING filters groups where WHERE cannot. (Middle)
- **Joins come in many flavors with equivalent syntaxes** (Late): inner, natural, cross, self, and outer joins are shown in ANSI and old-style forms, with the note that MySQL/MariaDB lack full outer join. (Late)
- **Subqueries suit small result sets; joins suit large ones** (Late): a practical performance heuristic rather than a rule to memorize. (Late)
- **SQL connects to the Python data stack** (Ending): running queries from Python 3 and loading tables into Pandas DataFrames bridges database work to analysis. (Ending)
【Reading Tips】
- **Deep-read the middle chapters** on WHERE, NULL, functions, and joins—these are the skills you'll use daily; skim the installation chapter if your environment is already set up.
- **Type every query yourself** against the sample schemas (sakila, employees); the book is exercise- and MCQ-driven, and the repetition is where the learning sticks.
- **Watch the NULL and HAVING sections closely**—they're the most common sources of beginner confusion and the book gives them explicit attention.
- **Treat the Python/Pandas chapter as a bridge**, not an afterthought; it's where SQL becomes useful for analysis workflows.
- **Use the "Points to Remember" and "Key Terms" blocks** at each chapter's end as quick revision checkpoints.
【Coverage Limits】
The excerpts cover the book's structure, early-to-mid content, and chapter objectives well, but detailed treatment of DDL/DML, transactions, constraints, and views in the final chapters is only partially visible; specific query examples there are not fully represented.
Excerpt 1
rom multiple sources using the Joins. Who this book is for This book is designed for beginners as well as professionals alike. The book will also be useful t...
ose the first radio button (Standalone MySQL Server/Classic MySQL Replication), as shown in the screenshot above, and click on the Next button. It will show...
SELECT title, description, original_language_id FROM film; The following screenshot shows the output: Points to Remember Arithmetic operators in the implemen...
esultset with n number of rows and return n number of rows. Single row functions are used in deriving new data or data transformation or report generation. W...
sources and multiple conditions, too, in the query for join. In the next chapter, we will learn subquery in detail. We will see multiple types of subqueries...
thon 3 We can run MySQL or MariaDB statements from Python 3 programs. For that, we need to install a library known as We can install it with pip is the packa...
ataframe. We can conveniently use MariaDB in place of MySQL. The Python 3 code will be the same. We just need to make changes to the connection parameter to...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Learn SQL with MySQL Retrieve and Manipulate Data Using SQL Commands with Ease (English Edition) (Ashwin Pajankar) (Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Learn SQL with MySQL Retrieve and Manipulate Data Using SQL Commands with Ease (English Edition) (Ashwin Pajankar) (Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment