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-1
Content list
1-2
About
1-3
Chapter 1: Getting started with PostgreSQL
1-4
Section 1.1: Installing PostgreSQL on Windows
1-5
Section 1.2: Install PostgreSQL from Source on Linux
1-6
Section 1.3: Installation on GNU+Linux
1-7
Section 1.4: How to install PostgreSQL via MacPorts on OSX
1-8
Section 1.5: Install postgresql with brew on Mac
1-9
Section 1.6: Postgres.app for Mac OSX
1-10
Chapter 2: Data Types
1-11
Section 2.1: Numeric Types
1-12
Section 2.2: Date/ Time Types
1-13
Section 2.3: Geometric Types
1-14
Section 2.4: Network Adress Types
1-15
Section 2.5: Character Types
1-16
Section 2.6: Arrays
1-17
Chapter 3: Dates, Timestamps, and Intervals
1-18
Section 3.1: SELECT the last day of month
1-19
Section 3.2: Cast a timestamp or interval to a string
1-20
Section 3.3: Count the number of records per week
1-21
Chapter 4: Table Creation
1-22
Section 4.1: Show table definition
1-23
Section 4.2: Create table from select
1-24
Section 4.3: Create unlogged table
1-25
Section 4.4: Table creation with Primary Key
1-26
Section 4.5: Create a table that references other table
1-27
Chapter 5: SELECT
1-28
Section 5.1: SELECT using WHERE
1-29
Chapter 6: Find String Length / Character Length
1-30
Section 6.1: Example to get length of a character varying field
1-31
Chapter 7: COALESCE
1-32
Section 7.1: Single non null argument
1-33
Section 7.2: Multiple non null arguments
1-34
Section 7.3: All null arguments
1-35
Chapter 8: INSERT
1-36
Section 8.1: Insert data using COPY
1-37
Section 8.2: Inserting multiple rows
1-38
Section 8.3: INSERT data and RETURING values
1-39
Section 8.4: Basic INSERT
1-40
Section 8.5: Insert from select
1-41
Section 8.6: UPSERT - INSERT ... ON CONFLICT DO UPDATE..
1-42
Section 8.7: SELECT data into file
1-43
Chapter 9: UPDATE
1-44
Section 9.1: Updating a table based on joining another table