0% found this document useful (0 votes)
4 views

Training - PostGRE Queries & Tuning

Uploaded by

look looket
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Training - PostGRE Queries & Tuning

Uploaded by

look looket
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PostgreSQL Queries & Tuning Training Program

Duration: 4 Days (32 hours)

Day 1: 4 Hours

● Discuss the basic design, theoretical, and physical aspects of a relational database
● Categorize the different types of SQL statements
● Describe the data set used by the course
● Log on to the database using SQL Developer environment
● Save queries to files and use script files in SQL Developer
● Database Basics:
○ Architectural Fundamentals (Logical and Physical layout)
○ Physical Architectural
○ Logical Architectural
○ Starting, stopping and finding status of postmaster
○ Exploring utilities in Postgresql (process and server / postmaster)
○ Working with above said process related utilities
● Database , users and schema introduction

Day 2: 4 Hours

● Overview of Schema Diagrams, Keys & Table Constraints


● NULL Values and their usage
● SELECT command – selection vs Projection
● Restrict and Sort Data
● Usage of Single-Row Functions to Customize Output
● Invoke Conversion Functions and Conditional Expressions
● CASE vs DECODE

Day 3: 4 Hours

● Using aggregate functions or one row functions for aggregation of data (Group Functions)
● Use the aggregation functions to produce meaningful reports
● Divide the retrieved data in groups by using the GROUP BY clause
● Exclude groups of data by using the HAVING clause
● Difference between Where clause & Group By
● Sequence of execution

Day 4: 4 Hours

● Display Data From Multiple Tables Using Joins


● Different type of joins and usage
● Write SELECT statements to access data from more than one table
● Types of Joins
● Old Syntax vs ANSI syntax
● Equi vs Non Equi Joins
● Inner Vs Outer Joins
● Using outer joins – its types
● Join a table to itself by using a Self join
● Multi Table Joins of 3 or more tables

Day 5: 4 Hours

● The SET Operators


● Describe the SET operators
● Use a SET operator to combine multiple queries into a single query
● Control the order of rows returned
● Use Sub-queries to Solve Queries
● Describe the types of problem that sub-queries can solve
● Define sub-queries
● List the types of sub-queries
● Write single-row and multiple-row sub-queries
● Retrieve Data Using Sub-queries
● Multiple-Column Subqueries
● Pairwise and Nonpairwise Comparison
● Solve problems with Correlated Subqueries
● Update and Delete Rows Using Correlated Subqueries
● The EXISTS and NOT EXISTS operators

Day 6: 4 Hours

● Invoke the WITH clause


● The Recursive WITH clause
● Manipulate Large Data Sets
● Use Subqueries to Manipulate Data
● Retrieve Data Using a Subquery as Source
● Insert Using a Subquery as a Target
● Working with views
○ Benefits and types
● Merge/Split rows in a tables
● Window Functions

Day 7: 4 Hours

● Enhancements to the GROUP BY Clause


● Understand Windows functions
● Use of ROLLUP Operation to Produce Subtotal Values
● Use of CUBE Operation to Produce Cross-Tabulation Values
● Use of GROUPING Function to Identify The Row Values Created By ROLLUP Or CUBE
● GROUPING SETS usage and importance

Day 8: 4 Hours

● Top N Analysis
● Ranking Rows & Pseudocolumn
● Understanding Lead & Lag of window functions in postgreSQL
● Hierarchical Queries
● Natural Tree Structure
● Walking the Tree
● Pruning Branches
● Joins vs subqueries
● Performance impact of using group by, joins or subqueries
● Practice based on grouping, joins

Day 9: 4 Hours

● Regular Expression Support


● Use the Regular Expressions Functions and Conditions in SQL
● Use Meta Characters with Regular Expressions
● Perform a Basic Search using the REGEXP_LIKE function
● Find patterns using the REGEXP_INSTR function
● Extract Substrings using the REGEXP_SUBSTR function
● Replace Patterns Using the REGEXP_REPLACE function
● Usage of Sub-Expressions with Regular Expression Support
● Implement the REGEXP_COUNT function

Day 10: 4 Hours

● Introduction to Optimizer and usage


● Execution plan introduction
● How to create and read execution plan
● Understand Configuration files in PostgreSQL
● Indexing Fundamentals
○ When to Index
○ When Not to Index
● Impact of index usage in SQL Performance
● Review, practice, and post assessment (MCQ)
● Transaction Management in PostgreSQL

You might also like