- What is a CTE?
- Can one CTE use other CTEs?
- Can a CTE reference itself?
- How do we insert rows into several tables at once?
- Is there a way to specify the order of execution of CTEs?
- What is the difference between grouping and aggregation, and using window functions?
- How do we calculate a moving average of a field for each row, taking three rows before and three rows after?
- How do we calculate the difference between the value of a field in the current row and the average of the previous and the next rows for each row?
- Can window functions be combined with aggregating functions?
- What is the purpose of the DISTINCT ON clause?
- How do we get a sample of data from a database table?
- How do we get a sequence of numbers using a SELECT query?
- Can a subquery (not a CTE) refer to another subquery?
- How do we use several sets of expressions in a single GROUP BY clause?

Learning PostgreSQL 11
By :

Learning PostgreSQL 11
By:
Overview of this book
PostgreSQL is one of the most popular open source database management systems in the world, and it supports advanced features included in SQL standards. This book will familiarize you with the latest features in PostgreSQL 11, and get you up and running with building efficient PostgreSQL database solutions from scratch.
Learning PostgreSQL, 11 begins by covering the concepts of relational databases and their core principles. You’ll explore the Data Definition Language (DDL) and commonly used DDL commands supported by ANSI SQL. You’ll also learn how to create tables, define integrity constraints, build indexes, and set up views and other schema objects. As you advance, you’ll come to understand Data Manipulation Language (DML) and server-side programming capabilities using PL/pgSQL, giving you a robust background to develop, tune, test, and troubleshoot your database application. The book will guide you in exploring NoSQL capabilities and connecting to your database to manipulate data objects. You’ll get to grips with using data warehousing in analytical solutions and reports, and scaling the database for high availability and performance.
By the end of this book, you’ll have gained a thorough understanding of PostgreSQL 11 and developed the necessary skills to build efficient database solutions.
Table of Contents (18 chapters)
Relational Databases
PostgreSQL in Action
PostgreSQL Basic Building Blocks
PostgreSQL Advanced Building Blocks
SQL Language
Advanced Query Writing
Server-Side Programming with PL/pgSQL
OLAP and Data Warehousing
Beyond Conventional Data Types
Transactions and Concurrency Control
PostgreSQL Security
The PostgreSQL Catalog
Optimizing Database Performance
Testing
Using PostgreSQL in Python Applications
Scalability
What's Next?
Other Books You May Enjoy
How would like to rate this book
Customer Reviews