The following is a summary of my work during a few courses on Datacamp
-
Functions for manipulating data in PostgreSQL:
- Using Extensions:
SIMILARITY, User-defined datatypes, User-defined functions, - Full text search:
TSVECTOR,LIKE - String operations:
SUBSTR,POSITION,LENGTH,CONCAT,REPLACE, Changing Case - Datetime operations:
DATE_TRUNC,TIMESTAMP,CAST,INTERVAL - Filtering using: Contains
@>orANY - Accessing data in an Array using index
[][1]and= - Using
INFORMATION_SCHEMA.COLUMNSto understand table datatypes - notebook link
- Using Extensions:
-
Summary Stats and Window Functions in PostgreSQL:
- Improving readability with
STRING_AGGandCOALESCE - Using
ROLLUPandCUBEto explore summary statistics - Pivoting to reshape for readability
LAST_VALUE,FIRST_VALUE,LEAD,PAGING,RANK- The most commonly used subclauses:
ORDER BYandPARTITION BY - notebook link
- Improving readability with
-
Data Manipulation in SQL:
CTE's,PARTITION,RANK,SLIDING WINDOWS,CASE,Subqueries -
Joining Data in SQL:
FULL JOIN,CROSS JOIN,INNER JOIN,LEFT JOIN,RIGHT JOIN,WHERE Subqueries
