
SQL Pocket Guide
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
New editions

Additional editions
Content
- Intro
- Contents
- SQL Pocket Guide
- Introduction
- Organization of This Book
- Feedback Needed!
- Conventions
- Acknowledgments
- Example Data
- Analytic Functions
- CASE Expressions
- Simple CASE Expressions
- Searched CASE Expressions
- Datatypes
- Character String Types
- Decimal Types
- Binary Integer Types
- Datetime Types
- Oracle
- DB2
- SQL Server
- MySQL
- PostgreSQL
- Dataype Conversion
- Standard CAST Function
- Standard EXTRACT Function
- Datetime Conversions (Oracle)
- Numeric Conversions (Oracle)
- Datetime Conversions (DB2)
- Numeric Conversions (DB2)
- Datetime Conversions (SQL Server)
- CAST and SET DATEFORMAT (SQL Server)
- CONVERT (SQL Server)
- DATENAME and DATEPART (SQL Server)
- DAY, MONTH, and YEAR (SQL Server)
- Numeric Conversions (SQL Server)
- Datetime Conversions (MySQL)
- Date and time elements (MySQL)
- TO_DAYS and FROM_DAYS (MySQL)
- Unix timestamp support (MySQL)
- Seconds in the day (MySQL)
- DATE_FORMAT and TIME_FORMAT (MySQL)
- Numeric Conversions (MySQL)
- Datetime Conversions (PostgreSQL)
- Numeric Conversions (PostgreSQL)
- Deleting Data
- Deleting in Order (MySQL)
- Deleting All Rows
- Deleting from Views and Subqueries
- Returning Deleted Data (Oracle, DB2)
- Double-FROM (SQL Server)
- Functions
- Datetime Functions (Oracle)
- Getting the current date and time in Oracle
- Rounding and truncating DATEs in Oracle
- Other useful Oracle datetime functions
- Datetime Functions (DB2)
- Datetime Functions (SQL Server)
- Datetime Functions (MySQL)
- Datetime Functions (PostgreSQL)
- Getting the current date and time in PostgreSQL
- Rounding and truncating in PostgreSQL
- Other useful PostgreSQL datetime functions
- Numeric and Math Functions (All Platforms)
- Trigonometric Functions (All Platforms)
- String Functions
- Searching a string
- Replacing text in a string
- Extracting a substring
- Finding the length of a string
- Concatenating strings
- Trimming unwanted characters
- Changing the case of a string
- GREATEST and LEAST (Oracle, PostgreSQL)
- Grouping and Summarizing
- Aggregate Functions
- GROUP BY
- Useful GROUP BY Techniques
- Reducing the GROUP BY list
- Grouping before the join
- HAVING
- GROUP BY Extensions (Oracle, DB2)
- ROLLUP (Oracle, DB2)
- CUBE (Oracle, DB2)
- GROUPING SETS (Oracle)
- Related functions (Oracle, DB2)
- GROUP BY Extensions (SQL Server)
- ROLLUP (SQL Server)
- CUBE (SQL Server)
- GROUPING (SQL Server)
- Hierarchical Queries
- Recursive WITH (SQL Server, DB2)
- CONNECT BY (Oracle)
- CONNECT BY, START WITH, and PRIOR (Oracle)
- Creative CONNECT BY (Oracle)
- WHERE clauses with CONNECT BY (Oracle)
- Joins with CONNECT BY (Oracle)
- Sorting CONNECT BY results (Oracle)
- Loops in hierarchical data (Oracle)
- CONNECT BY functions and operators (Oracle)
- Indexes, Creating
- Indexes, Removing
- Inserting Data
- Single-Row Inserts
- Multi-Row Inserts (DB2, MySQL)
- Insert Targets
- Subquery Inserts
- Returning Inserted Values (Oracle, DB2)
- Multi-Table Inserts (Oracle)
- Unconditional multi-table insert (Oracle)
- Conditional multi-table insert (Oracle)
- ALL versus FIRST (Oracle)
- Joining Tables
- The Concept of a Join
- Cross Joins
- Inner Joins
- The USING Clause (Oracle, MySQL, PostgreSQL)
- Natural Joins (Oracle, MySQL, PostgreSQL)
- Non-Equi-Joins
- Outer Joins
- Left outer joins
- Interpreting nulls in an outer join
- Right outer joins
- Full outer joins
- Vendor-specific outer join syntax
- Literals
- Text Literals
- Numeric Literals
- Datetime Literals (Oracle, MySQL, PostgreSQL)
- Datetime Interval Literals
- Merging Data (Oracle, DB2)
- Nulls
- Predicates for Nulls
- Using CASE with Nulls
- Using the COALESCE Function
- Functions for Nulls (Oracle)
- Functions for Nulls (DB2)
- Functions for Nulls (SQL Server)
- Functions for Nulls (MySQL)
- Functions for Nulls (PostgreSQL)
- OLAP Functions
- Predicates
- EXISTS Predicates
- IN Predicates
- BETWEEN Predicates
- LIKE Predicates
- Recursive Queries
- Regular Expressions
- Regular Expressions (Oracle)
- Regular Expressions (SQL Server)
- Regular Expressions (MySQL)
- Regular Expressions (PostgreSQL)
- Selecting Data
- The SELECT Clause
- Listing the columns to retrieve
- Taking shortcuts with the asterisk
- Writing expressions
- Specifying result-set column names
- Dealing with case and punctuation in names
- Using subqueries in a SELECT list
- Qualifying column names
- ALL and DISTINCT
- The FROM Clause
- Table aliases in the FROM clause
- Subqueries in the FROM clause
- Selecting newly inserted, updated, or deleted rows (DB2)
- Generating tables through the VALUES clause (DB2)
- The WHERE Clause
- The GROUP BY Clause
- The HAVING Clause
- The ORDER BY Clause
- Subqueries
- The WITH Clause (Oracle, SQL Server, DB2)
- Tables, Creating
- Creating a Table (Oracle)
- Creating a Table (DB2)
- Creating a Table (SQL Server)
- Creating a Table (MySQL)
- Creating a Table (PostgreSQL)
- Tables, Modifying
- Modifying a Table (Oracle)
- Modifying a Table (DB2)
- Modifying a Table (SQL Server)
- Modifying a Table (MySQL)
- Modifying a Table (PostgreSQL)
- Tables, Removing
- Transaction Management
- Autocommit Mode (SQL Server, MySQL, PostgreSQL)
- Starting a Transaction
- Starting a transaction (Oracle)
- Starting a transaction (SQL Server)
- Starting a transaction (MySQL)
- Starting a transaction (PostgreSQL)
- Ending a Transaction
- Aborting a Transaction
- Aborting to a Transaction Savepoint
- Union Queries
- UNION and UNION ALL
- UNION
- UNION ALL
- ORDER BY in Union Queries
- Names and Datatypes in a Union
- Order of Evaluation
- EXCEPT (or MINUS)
- EXCEPT (or MINUS in Oracle)
- EXCEPT ALL (DB2, PostgreSQL)
- INTERSECT
- INTERSECT
- INTERSECT ALL (DB2, PostgreSQL)
- Updating Data
- Simple Updates
- New Values from a Subquery
- Updating Views and Subqueries
- UPDATE FROM Clause (SQL Server, PostgreSQL)
- Returning Updated Data (Oracle, DB2)
- Window Functions
- Defining a Summary Window (Oracle, DB2, SQL Server)
- Ordering and Ranking Within a Window (Oracle, DB2, SQL Server)
- Comparing Values Across Rows (Oracle)
- Summarizing over a Moving Window (Oracle, DB2)
- Window Function Syntax (Oracle)
- Window Function Syntax (DB2)
- Window Function Evaluation and Placement
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.