The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified
Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners
https://goalkicker.com/
Content
1-1Content list
1-2About
1-3Chapter 1: Getting started with MySQL
1-4Section 1.1: Getting Started
1-5Section 1.2: Information Schema Examples
1-6Chapter 2: Data Types
1-7Section 2.1: CHAR(n)
1-8Section 2.2: DATE, DATETIME, TIMESTAMP, YEAR, and TIME
1-9Section 2.3: VARCHAR(255) -- or not
1-10Section 2.4: INT as AUTO_INCREMENT
1-11Section 2.5: Others
1-12Section 2.6: Implicit / automatic casting
1-13Section 2.7: Introduction (numeric)
1-14Section 2.8: Integer Types
1-15Section 2.9: Fixed Point Types
1-16Section 2.10: Floating Point Types
1-17Section 2.11: Bit Value Type
1-18Chapter 3: SELECT
1-19Section 3.1: SELECT with DISTINCT
1-20Section 3.2: SELECT all columns (*)
1-21Section 3.3: SELECT by column name
1-22Section 3.4: SELECT with LIKE (%)
1-23Section 3.5: SELECT with CASE or IF
1-24Section 3.6: SELECT with Alias (AS)
1-25Section 3.7: SELECT with a LIMIT clause
1-26Section 3.8: SELECT with BETWEEN
1-27Section 3.9: SELECT with WHERE
1-28Section 3.10: SELECT with LIKE(_)
1-29Section 3.11: SELECT with date range
1-30Chapter 4: Backticks
1-31Section 4.1: Backticks usage
1-32Chapter 5: NULL
1-33Section 5.1: Uses for NULL
1-34Section 5.2: Testing NULLs
1-35Chapter 6: Limit and Oset
1-36Section 6.1: Limit and Oset relationship
1-37Chapter 7: Creating databases
1-38Section 7.1: Create database, users, and grants
1-39Section 7.2: Creating and Selecting a Database
1-40Section 7.3: MyDatabase
1-41Section 7.4: System Databases
1-42Chapter 8: Using Variables
1-43Section 8.1: Setting Variables
1-44Section 8.2: Row Number and Group By using variables in Select Statement
1-45Chapter 9: Comment MySQL
1-46Section 9.1: Adding comments
1-47Section 9.2: Commenting table definitions
1-48Chapter 10: INSERT
1-49Section 10.1: INSERT, ON DUPLICATE KEY UPDATE
1-50Section 10.2: Inserting multiple rows
1-51Section 10.3: Basic Insert
1-52Section 10.4: INSERT with AUTO_INCREMENT + LAST_INSERT_ID()
1-53Section 10.5: INSERT SELECT (Inserting data from another Table)
1-54Section 10.6: Lost AUTO_INCREMENT ids
1-55Chapter 11: DELETE
1-56Section 11.1: Multi-Table Deletes
1-57Section 11.2: DELETE vs TRUNCATE
1-58Section 11.3: Multi-table DELETE
1-59Section 11.4: Basic delete
1-60Section 11.5: Delete with Where clause
1-61Section 11.6: Delete all rows from a table
1-62Section 11.7: LIMITing deletes
1-63Chapter 12: UPDATE
1-64Section 12.1: Update with Join Pattern
1-65Section 12.2: Basic Update
1-66Section 12.3: Bulk UPDATE
1-67Section 12.4: UPDATE with ORDER BY and LIMIT
1-68Section 12.5: Multiple Table UPDATE
1-69Chapter 13: ORDER BY
1-70Section 13.1: Contexts
1-71Section 13.2: Basic
1-72Section 13.3: ASCending / DESCending
1-73Section 13.4: Some tricks
1-74Chapter 14: Group By
1-75Section 14.1: GROUP BY using HAVING
1-76Section 14.2: Group By using Group Concat
1-77Section 14.3: Group By Using MIN function
1-78Section 14.4: GROUP BY with AGGREGATE functions
1-79Chapter 15: Error 1055: ONLY_FULL_GROUP_BY: something is not in GROUP BY clause ...
1-80Section 15.1: Misusing GROUP BY to return unpredictable results: Murphy's Law
1-81Section 15.2: Misusing GROUP BY with SELECT *, and how to fix it
1-82Section 15.3: ANY_VALUE()
1-83Section 15.4: Using and misusing GROUP BY
1-84Chapter 16: Joins
1-85Section 16.1: Joins visualized
1-86Section 16.2: JOIN with subquery ("Derived" table)
1-87Section 16.3: Full Outer Join
1-88Section 16.4: Retrieve customers with orders -- variations on a theme
1-89Section 16.5: Joining Examples
1-90Chapter 17: JOINS: Join 3 table with the same name of id.
1-91Section 17.1: Join 3 tables on a column with the same name
1-92Chapter 18: UNION
1-93Section 18.1: Combining SELECT statements with UNION
1-94Section 18.2: Combining data with dierent columns
1-95Section 18.3: ORDER BY
1-96Section 18.4: Pagination via OFFSET
1-97Section 18.5: Combining and merging data on dierent MySQL tables with the same columns into unique rows and running query
1-98Section 18.6: UNION ALL and UNION
1-99Chapter 19: Arithmetic
1-100Section 19.1: Arithmetic Operators
1-101Section 19.2: Mathematical Constants
1-102Section 19.3: Trigonometry (SIN, COS)
1-103Section 19.4: Rounding (ROUND, FLOOR, CEIL)
1-104Section 19.5: Raise a number to a power (POW)
1-105Section 19.6: Square Root (SQRT)
1-106Section 19.7: Random Numbers (RAND)
1-107Section 19.8: Absolute Value and Sign (ABS, SIGN)
1-108Chapter 20: String operations
1-109Section 20.1: LENGTH()
1-110Section 20.2: CHAR_LENGTH()
1-111Section 20.3: HEX(str)
1-112Section 20.4: SUBSTRING()
1-113Section 20.5: UPPER() / UCASE()
1-114Section 20.6: STR_TO_DATE - Convert string to date
1-115Section 20.7: LOWER() / LCASE()
1-116Section 20.8: REPLACE()
1-117Section 20.9: Find element in comma separated list
1-118Chapter 21: Date and Time Operations
1-119Section 21.1: Date arithmetic
1-120Section 21.2: SYSDATE(), NOW(), CURDATE()
1-121Section 21.3: Testing against a date range
1-122Section 21.4: Extract Date from Given Date or DateTime Expression
1-123Section 21.5: Using an index for a date and time lookup
1-124Section 21.6: Now()
1-125Chapter 22: Handling Time Zones
1-126Section 22.1: Retrieve the current date and time in a particular time zone
1-127Section 22.2: Convert a stored `DATE` or `DATETIME` value to another time zone
1-128Section 22.3: Retrieve stored `TIMESTAMP` values in a particular time zone
1-129Section 22.4: What is my server's local time zone setting?
1-130Section 22.5: What time_zone values are available in my server?
1-131Chapter 23: Regular Expressions
1-132Section 23.1: REGEXP / RLIKE
1-133Chapter 24: VIEW
1-134Section 24.1: Create a View
1-135Section 24.2: A view from two tables
1-136Section 24.3: DROPPING A VIEW
1-137Section 24.4: Updating a table via a VIEW
1-138Chapter 25: Table Creation
1-139Section 25.1: Table creation with Primary Key
1-140Section 25.2: Basic table creation
1-141Section 25.3: Table creation with Foreign Key
1-142Section 25.4: Show Table Structure
1-143Section 25.5: Cloning an existing table
1-144Section 25.6: Table Create With TimeStamp Column To Show Last Update