PostgreSQL: Advanced Queries
Offered By: LinkedIn Learning
Course Description
Overview
Find out about the range of statistical functions and techniques that are available for analyzing data stored within a PostgreSQL database.
Syllabus
Introduction
- Gain additional insights from your PostgreSQL data
- What you should know
- Using the exercise files
- Learning with CoderPad
- Using GROUP BY to aggregate data rows
- Obtain general-purpose aggregate statistics
- Evaluate columns with Boolean aggregates
- Find the standard deviation and variance of a dataset
- Include overall aggregates with ROLLUP
- Return all possible combinations of groups with CUBE
- Segmenting groups with aggregate filters
- Solution: Group statistics with filters
- Create a window function with an OVER clause
- Partition rows within a window
- Streamline partition queries with a WINDOW clause
- Ordering data within a partition
- Calculate a moving average with a sliding window
- Return values at specific locations within a window
- Solution: Leverage window functions
- Calculate the median value of a dataset
- Calculate the first and third quartiles of a dataset
- Find the most frequent value within a dataset with MODE
- Determine the range of values within a dataset
- Solution: Retrieve statistics of a dataset with groups
- Rank rows with a window function
- Find a hypothetical rank
- View top performers with percentile ranks
- Evaluate probability with cumulative distribution
- Solution: Evaluate rankings within a dataset
- Define values with CASE statements
- Merge columns with COALESCE
- Convert values to null with NULLIF
- Output row numbers with query results
- Cast values to a different data type
- Move rows within a result with LEAD and LAG
- Use an IN function with a subquery
- Define WHERE criteria with a series
- Solution: Calculations across rows
- Pattern matching with regular expressions
- Next steps
Taught by
Adam Wilbert
Related Courses
Web Application Development: The Data TierUniversity of New Mexico via Coursera Desarrollo de Aplicaciones Web: Nivel de Datos
University of New Mexico via Coursera Hacking PostgreSQL: Data Access Methods
Ural Federal University via edX Spatial Data Science and Applications
Yonsei University via Coursera RDBMS PostgreSQL
Indian Institute of Technology Bombay via Swayam