
Install pgAdmin 4 v5.5
Explore the database model for an employee management system by linking the employees and departments tables through department_id, and prepare them in Pgadmin to run basic to advanced queries.
Explore hierarchical queries and parent-child relationships by testing self joins on an employees table to display each employee with their manager, using concatenation and subqueries.
Build a recursive query to generate an employee tree from a parent-child table. Start with roots (manager_id is null) and use union all to reveal hierarchy to any depth.
Identify each row's position in a parent-child hierarchy by classifying employees as leaf, branch, or root using scalar subqueries, counts, and a sign method in SQL.
Learn to compute a three-point moving average in SQL by combining current sales with two prior values using lag functions and a window ordered by transaction date.
Learn how to calculate the mode in a data set using SQL, counting how often each salary appears, applying dense_rank, and selecting the most frequent value.
Calculate a median using percentile_cont within group by salary, filtered by department 20, and compute averages without highs and lows by excluding max and min salaries.
Learn date arithmetic in PostgreSQL by adding and subtracting days, months, and years with interval, and calculate the number of days between dates using simple queries.
Apply window functions with dense_rank to return the top salaries, handling ties correctly, using inline views and ranking rather than limit for accurate top end results.
Explore how the order by clause in a window function's over clause shapes results within a partition, computing running salaries by department and comparing partitioned totals.
Generate dynamic SQL from meta queries to count rows across thousands of base tables in the public schema, building strings into a SQL statement for maintenance tasks.
Prepare and upload World Bank depth data to a PostgreSQL database, create the international depth table with country and indicator fields, insert data, and preview records for global data stories.
Are you ready to embark on an exciting journey through the dynamic world of PostgreSQL?
Look no further! Our comprehensive PostgreSQL course has been meticulously designed to transform you from a novice into a PostgreSQL wizard, armed with the skills to conquer real-world data challenges!
By the end of this course, you will run 200+ SQL queries to:
Apply Powerful SQL Commands: Gain the expertise to effectively store, update, and retrieve information using PostgreSQL's powerful SQL commands.
Master Complex Joins: Navigate the intricate web of data by seamlessly joining multiple tables with various techniques.
Harness the Magic of Subqueries: Move from the basics to advanced subqueries with ease, enabling you to extract precise information from complex datasets.
Unlock the Secrets of Aggregate Functions: Learn how to aggregate data using functions that turn raw data into meaningful insights.
Time Travel with Date/Time: Handle date and time data types, intervals, and timezones like a pro.
Data Grouping: Organize your data with GROUP BY and apply conditional filters using HAVING, allowing for more structured analysis.
Combining Queries: Combine query results using UNION, INTERSECT, and EXCEPT, creating a powerful toolbox for data manipulation.
Windows Functions: Delve into the world of window functions, from the basics to advanced techniques for advanced data analysis.
Real-world Practice: Work on practical datasets, including Employee Management System, International Debt Data Analysis, Stock Market Analysis, World Trades databases, and much more to preparing you for real-world scenarios.
Ready to Take the Leap? Join Us Today!
Don't miss this opportunity to master PostgreSQL, one of the most popular and powerful relational database systems in the world. Sign up now, and you'll be well on your way to becoming a PostgreSQL pro! Your next big project is waiting – seize it with PostgreSQL expertise!
Your journey begins with a single click. Enroll now and revolutionize your data handling skills with PostgreSQL!