Course Outline
Introduction
- Overview of the Course
- Aims and Objectives for Government
- Sample Data for Practical Application
- Schedule for Effective Learning
- Introductions to Key Concepts
- Pre-requisites for Participants
- Responsibilities of Attendees and Instructors
Relational Databases
- Understanding the Database Structure
- The Concept of a Relational Database for Government
- Tables and Their Importance
- Rows and Columns in Databases
- Sample Database for Practical Exercises
- Selecting Specific Rows from a Table
- Supplier Table Example
- Saleord Table Explanation
- Primary Key Index for Data Integrity
- Secondary Indexes for Efficient Querying
- Relationships Between Tables in a Database
- Analogy to Understand Relationships
- Foreign Key Constraint for Referential Integrity
- Joining Multiple Tables for Comprehensive Data Retrieval
- Referential Integrity in Database Design
- Types of Relationships in Databases
- Many-to-Many Relationships and Their Resolution
- One-to-One Relationships for Specific Use Cases
- Completing the Database Design Process
- Resolving Complex Relationships in Databases
- Microsoft Access - Managing Relationships
- Entity Relationship Diagram for Visualizing Data
- Data Modeling Techniques for Government
- CASE Tools for Advanced Database Design
- Sample Diagram to Illustrate Concepts
- The Relational Database Management System (RDBMS)
- Advantages of Using an RDBMS in Government Operations
- Structured Query Language (SQL) for Data Manipulation
- DDL - Data Definition Language for Schema Management
- DML - Data Manipulation Language for Data Operations
- DCL - Data Control Language for Security and Access
- Reasons to Use SQL in Government Applications
- Course Tables Handout for Reference
Data Retrieval
- Introduction to SQL Developer Tool
- Establishing a Connection in SQL Developer
- Viewing Table Information and Metadata
- Using the WHERE Clause for Conditional Selection
- Adding Comments to SQL Code for Clarity
- Handling Character Data in Queries
- Understanding Users and Schemas in Databases
- Using AND and OR Logical Operators
- Utilizing Brackets for Complex Conditions
- Working with Date Fields in SQL
- Formatting Dates for Readability
- Specifying Date Formats in Queries
- Using the TO_DATE Function for Conversion
- TRUNC Function for Date Truncation
- Displaying Dates in SQL Results
- ORDER BY Clause for Sorting Data
- DUAL Table for Single-Row Functions
- Concatenation of Strings in SQL
- Selecting Text from a Database
- IN Operator for Multiple Values
- BETWEEN Operator for Range Selection
- LIKE Operator for Pattern Matching
- Common Errors in SQL Queries
- Using the UPPER Function for Case Insensitivity
- Handling Single Quotes in SQL Strings
- Finding Metacharacters in Data
- Regular Expressions in SQL Queries
- REGEXP_LIKE Operator for Advanced Pattern Matching
- Handling Null Values in Databases
- IS NULL Operator for Checking Nulls
- NVL Function for Default Values
- Accepting User Input in SQL Queries
Using Functions
- TO_CHAR Function for Data Conversion
- TO_NUMBER Function for Numeric Conversion
- LPAD Function for Left Padding Strings
- RPAD Function for Right Padding Strings
- NVL Function for Handling Nulls in Calculations
- NVL2 Function for Conditional Values
- DISTINCT Option for Unique Results
- SUBSTR Function for Extracting Substrings
- INSTR Function for Finding Substring Positions
- Date Functions in SQL Queries
- Aggregate Functions for Summarizing Data
- COUNT Function for Row Counting
- GROUP BY Clause for Grouping Data
- Rollup and Cube Modifiers for Hierarchical Aggregation
- HAVING Clause for Filtering Groups
- Grouping by Functions in SQL Queries
- DECODE Function for Conditional Values
- CASE Statement for Complex Conditions
- Workshop to Apply Learned Concepts
Sub-Query & Union
- Single Row Sub-queries for Specific Data
- UNION Operator for Combining Results
- UNION ALL for Including Duplicates
- INTERSECT and MINUS Operators for Set Operations
- Multiple Row Sub-queries for Complex Conditions
- Union - Checking Data Consistency
- Outer Join for Inclusive Results
More On Joins
- Types of Joins in SQL Queries
- Cross Join or Cartesian Product for All Combinations
- Inner Join for Matching Rows
- Implicit Join Notation for Simplified Syntax
- Explicit Join Notation for Clarity
- Natural Join for Automatic Matching
- Equi-Join for Equal Conditions
- Cross Join for All Combinations (Revisited)
- Outer Joins for Incomplete Matches
- Left Outer Join for Preserving Left Table Rows
- Right Outer Join for Preserving Right Table Rows
- Full Outer Join for Combining All Rows
- Using UNION to Combine Results
- Join Algorithms for Performance Optimization
- Nested Loop Join for Small Datasets
- Merge Join for Sorted Data
- Hash Join for Large Datasets
- Reflexive or Self Join for Single Table Operations
- Single Table Join for Simplified Queries
- Workshop to Practice Joins and Set Operations
Advanced Queries
- ROWNUM and ROWID for Row Identification
- Top N Analysis for Ranking Data
- Inline View for Subquery Results
- EXISTS and NOT EXISTS for Conditional Queries
- Correlated Sub-queries for Related Data
- Using Functions in Correlated Sub-queries
- Correlated Update for Data Modification
- Snapshot Recovery for Data Integrity
- Flashback Recovery for Historical Data
- ALL Operator for Universal Conditions
- ANY and SOME Operators for Multiple Values
- Insert ALL for Batch Inserts
- Merge Statement for Conditional Updates and Inserts
Sample Data
- ORDER Tables for Practical Examples
- FILM Tables for Media Data
- EMPLOYEE Tables for Personnel Records
- Detailed Information on the ORDER Tables
- Detailed Information on the FILM Tables
Utilities
- Definition and Importance of Database Utilities
- Export Utility for Data Backup and Transfer
- Using Parameters in the Export Process
- Utilizing a Parameter File for Customization
- Import Utility for Restoring Data
- Using Parameters in the Import Process
- Utilizing a Parameter File for Import Customization
- Unloading Data for Migration and Backup
- Batch Runs for Automated Processing
- SQL*Loader Utility for Bulk Data Loading
- Running the SQL*Loader Utility
- Appending Data to Existing Tables
Requirements
Testimonials (7)
Greg was very patient and helpful
Chris Havel - Encyclopaedia Britannica
Course - ORACLE SQL Fundamentals
Theory was explained very well
Sven - LGT Financial Services AG
Course - ORACLE SQL Fundamentals
I liked the split screen database portal that we worked off of and saw where on the course we were so I can go back to retry the exercises. He was great to learn from - he was engaging and encouraging. I appreciate the training being in my time zone while my trainer is 7 hrs ahead.
Olivia Button - Encyclopaedia Britannica
Course - ORACLE SQL Fundamentals
it was very informative
Metuatini (aka) Metua - Ministry of Justice
Course - ORACLE SQL Fundamentals
- Learning about SQL and different types of Data bases. - Creating tables with authors and then creating the books and then connecting the information and using those for the sql queries we had - Enjoyed the different scenarios that we could apply certain sql queries. I enjoyed learning about the different 'Joins', calculating average salaries for certain employees as well as many other different sql queries to find out specific information. - The training set up was user friendly and if we had issues on our desktops, Jose was able to remote in and see the issue and resolve.
Frank - Ministry of Justice
Course - ORACLE SQL Fundamentals
The way he explain the topic with reference from previous topics and its important applications.
Ferdinand - National Grid Corporation of the Philippines
Course - ORACLE SQL Fundamentals
Luka is an excellent, patient teacher with a sense of humor. His relaxed style made the stressful experience of "be called to the blackboard" more pleasant. Also one student explaining or guiding the other was a very good idea. I will use the motto "KISS methodology" he shared with us in both my SQL exercises , private and professional life since I like to overcomplicate things. Luka also kept the good pace considering how much material was there for him to show and for us to learn.