PostgresSQL
Basics
dbt builddbt compiledbt commandsdbt run commanddbt seeddbt depsdbt initdbt snapshotdbt lsdbt cleandbt sourcesdbt docsData TypesGet Started with BigQuery and PopSQL in 5 MinutesHow to DeleteHow to UpdateHow to InsertHow to Use substring() with RegEx to Extract a StringHow to Use substring()How to Use string_agg()How to Trim StringsHow to Replace SubstringsHow to Query ArraysHow to Modify ArraysHow to Insert Data Into an ArrayHow to Create an ArrayHow to Convert the Case of a StringHow to Concatenate StringsHow to Compare ArraysHow to InsertHow to UpdateHow to Delete
Database Management
How to drop a columnHow to Add an IndexHow to Reset SequenceHow to Drop a ViewHow to Create a ViewHow to Drop an IndexHow to Add an IndexHow to Remove a Not Null ConstraintHow to Add a Not Null ConstraintHow to Remove a Default Value From a ColumnHow to Add a Default ValueHow to Change a Column NameHow to Add a ColumnHow to Duplicate a TableHow to Truncate a TableHow to Rename a TableHow to Drop a TableHow to Create a TableHow to Create a TableHow to Delete a TableHow to Rename a TableHow to Truncate a TableHow to Duplicate a TableHow to Add a ColumnHow to Remove a ColumnHow to Change a Column NameHow to Set a Column with Default ValueHow to Remove a Default Value to a ColumnHow to Add a Not Null ConstraintHow to Remove a Not Null ConstraintHow to Drop an IndexHow to Create a ViewHow to Drop a ViewHow to Alter Sequence
Dates and Times
Analysis
How to use SQL PivotHow to Query a JSON ColumnHow to Calculate Cumulative Sum-Running TotalHow to Use Filter to Have Multiple CountsHow to Write a Case StatementHow to Use CoalesceHow to Compare Two Values When One Is NullHow to Import a CSV using CopyHow to Write a Common Table ExpressionHow to Do Type CastingHow to Use generate_series to Avoid Gaps In DataHow to Get the First Row per GroupHow to Calculate PercentilesHow to Use Lateral JoinsHow to Use nullif()
Deployment
Integration
From postgresql query to chart to Slack in seconds
Get to answers faster, together, with PopSQL and postgresql