
Beginner-friendly course introducing PostgreSQL and SQL server concepts, covering SQL basics, constraints, joins, set operators, built-in functions, and window functions for reporting and analysis.
Learn how sql interacts with databases through queries on tables, views, and objects, and how relational database management systems use primary keys, foreign keys, and constraints to enforce structured data.
Install sales db and my database on SQL Server and PostgreSQL, using scripts and backups to drop and recreate databases, create schemas and tables, and populate them with sample data.
Explore the core sql command types—ddl, dml, and dql—along with dcl concepts like grant and revoke, and how commit and rollback affect transactions in PostgreSQL and sql server.
Explore basics of SQL select queries, including retrieving and filtering data, sorting with order by, using distinct, and aggregating with group by, plus how to write single- and multi-line comments.
Explore PostgreSQL basics by comparing SQL Server concepts, using limit to retrieve top rows, ordering by descending scores, and applying group by and having with static columns.
Learn the basics of ddl with create, alter, and drop statements, including creating a person table, applying not null and primary key constraints, and altering structure.
Explore PostgreSQL ddl basics by creating a table, adding an email column, dropping a phone column, and verifying changes with select queries, noting the same syntax works in SQL Server.
Master data manipulation language basics by using insert, update, and delete to add, modify, and remove rows under specific conditions.
Master data filtering with the where clause in PostgreSQL and SQL Server, using comparison, logical, and pattern operators; apply between, in, not in, and like to refine queries.
Master grouping data with the group by clause, compute per-country aggregates using count, sum, and average, and filter with where and having clauses before sorting by average.
Understand the SQL execution order from clause to limit, including joins, on, where, group by, having, and order by, and how select aliases work in order by.
Master sql constraints in PostgreSQL, including primary keys, foreign keys, unique keys, not null, check, and default constraints, to enforce referential integrity and data quality.
Explore constraints in detail by building a table with identity columns, primary keys, not null, unique, check constraints, defaults, and foreign keys, and observe null handling.
Learn how sql joins extract data from multiple tables, including inner join, left join, right join, full outer join, right anti join, cross join, and self join.
Identify the inner join as returning rows with matching keys from two tables, such as customer and orders, showing id, order_id, and sales for matched records.
Learn how left join returns matching rows from both tables plus all rows from the left table, with nulls where no match exists, using a customer and orders example.
Illustrates the right join as the reverse of the left join, displaying all right table data with nulls in nonmatching left columns.
Master the full outer join to return all data from both tables, including common data, with nulls where data are absent in either table.
Explore advanced join types in PostgreSQL, including left anti join, right anti join, full outer join, and cross join, with practical examples using the orders and customers tables.
Learn how to perform multi-table joins in sql postgresql by retrieving orders with related customers, products, and employees using left joins.
Explore set operators in PostgreSQL: union, union all, except, and intersect, with rules on column count, data types, and order, and learn when duplicates are removed or preserved.
Explore sql functions, from single row operations like string, numeric, date/time, and null functions to multi row operations, including aggregate and window functions, with plans to deep dive later.
Discover the inbuilt string functions in SQL Server, covering manipulation, calculation, and extraction; learn concat, lower, upper, trim, replace, length, left, right, and substring, with PostgreSQL alternatives.
Explore how PostgreSQL implements string functions like concat, lower, upper, length, trim, replace, left, and substring, and compare them with SQL Server equivalents, including position and str position as alternatives.
Explore number functions in PostgreSQL, including round, absolute, ceiling, and floor, and learn formatting numeric values through scalar single-row functions, with cross reference to SQL Server.
Explore date and time functions in SQL Server, including getdate, date_trunc, date_name, datepart, format, convert, dateadd, and datediff, plus validation with isdate.
Learn PostgreSQL date functions from extracting year to formatting months, using date trunk, date part, and extract, to analyze orders by year or month.
Master null handling in SQL Server and PostgreSQL by using coalesce, isnull, nullif, and concat to manage averages, merges, joins, and null versus empty values.
Explore PostgreSQL null functions, including coalesce for retrieving the first name and handling null last names, concatenation, and SQL Server equivalents like not null and left anti join.
Learn case statements in SQL to categorize data with when-then logic. Explore PostgreSQL examples classifying sales as high, medium, or low, and using else defaults with null handling.
Master aggregate functions in PostgreSQL by using count, sum, max, min, and average with group by to analyze per customer orders and sales.
Explore window functions basics in PostgreSQL, learning how they preserve detail while aggregating with over and partition by for per-order and per-product totals.
Explore how rank and dense_rank assign positions in ordered data using window functions, over partition by, to compute total sales by order status for current and next two orders.
Learn windows aggregate functions in PostgreSQL, using over and partition by to compute total orders per customer and total sales per product while keeping detail rows.
Master sql window ranking functions such as row_number, rank, and dense_rank, using over partition by and order by to rank, bucket, and analyze ordered data, including top and bottom analyses.
Explore lead and lag analytic functions, plus first value and last value, in SQL Server and PostgreSQL, using order by and optional partition by for time-series analysis.
Use first_value and last_value window functions with order by month, adjusting the frame to current row and unbounded following, and compute difference between current sales and lowest sales per product.
Explore subqueries in PostgreSQL and MySQL, classifying scalar, row, and table types, and applying non correlated and correlated subqueries in select, from, join, and where with any, all, and exists.
Explore common table expressions (CTEs) defined with the with keyword as named temporary results, including non-recursive standalone, nested, and multiple CTEs, and recursive CTEs used for ranking and segmenting customers.
Having 11+ years of experience in data industry , worked in LTIMindtree, Capgemini, Globant and Kaseya software.
Have recorded these sessions while giving training to the professionals and IT Experts.
This course is mainly targetting for beginner level, we have covered everything with practical examples, will share the downloadable resources as well - in which - we have covered scripts , so that you can implement it by yourself.
Note:
Will explain the concepts either in postgresql or in sql server - when the code is same for both, but whenever the code or functions are different , I will explain the code in both SQL Server & PostgreSQL., which are most demanding databases in the current job market.
REQUEST YOU TO GO THROUGH ALL THE SECTION'S VIDEOS THROUGHLY TO HAVE THE BEST ADVANTAGE.
Course Content:
SECTION - 1 INTRODUCTION TO SQL
SECTION - 2 SQL CONSTRAINTS
SECTION - 3 JOINS
SECTION - 4 SET OPERATORS
SECTION - 5 SQL BUILT-IN FUNCTIONS
SECTION - 6 SQL WINDOW FUNCTIONS
WINDOW AGGREGATE FUNCTIONS
WINDOW RANKING FUNCTIONS
WINDOW VALUE FUNCTIONS
WINDOW ANALYTICAL FUNCTIONS
SECTINO -7 SUBQUERY
SECTION -8 COMMON TABLE EXPRESSIONS
STANDALONE CTE
MULTIPLE CTEs AND NESTED CTE
RECURSIVE CTEs
All the examples covered in this course are very similar to the real world examples, covered downloadable resources as well for your practice.
This course is targetting the absolute beginner audiance, which will help them to level up their skills.