{"id":15187476,"url":"https://github.com/bursasha/oracle-postgresql-projects","last_synced_at":"2026-03-04T13:02:43.344Z","repository":{"id":245914058,"uuid":"819008752","full_name":"bursasha/oracle-postgresql-projects","owner":"bursasha","description":"Advanced SQL, covering Oracle PL/SQL and PostgreSQL PL/pgSQL with phases on using procedures, functions, triggers, query optimizations, packages, and Docker server setup 💡","archived":false,"fork":false,"pushed_at":"2024-06-24T18:08:55.000Z","size":12563,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T08:31:23.535Z","etag":null,"topics":["common-table-expression","docker","docker-compose","function","oracle","oracle-plsql","plpgsql","plsql","posgtresql","postgresql-plpgsql","procedure","query-optimization","recursive-queries","script","sql","trigger"],"latest_commit_sha":null,"homepage":"","language":"PLSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bursasha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-23T14:12:55.000Z","updated_at":"2024-06-24T18:52:15.000Z","dependencies_parsed_at":"2024-06-24T20:03:58.246Z","dependency_job_id":"54bd3c23-8222-4235-b7be-0cc7e9ed6d20","html_url":"https://github.com/bursasha/oracle-postgresql-projects","commit_stats":null,"previous_names":["bursasha/oracle-postgresql-projects"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bursasha/oracle-postgresql-projects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bursasha%2Foracle-postgresql-projects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bursasha%2Foracle-postgresql-projects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bursasha%2Foracle-postgresql-projects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bursasha%2Foracle-postgresql-projects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bursasha","download_url":"https://codeload.github.com/bursasha/oracle-postgresql-projects/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bursasha%2Foracle-postgresql-projects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30081080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T12:28:08.313Z","status":"ssl_error","status_checked_at":"2026-03-04T12:27:28.210Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["common-table-expression","docker","docker-compose","function","oracle","oracle-plsql","plpgsql","plsql","posgtresql","postgresql-plpgsql","procedure","query-optimization","recursive-queries","script","sql","trigger"],"created_at":"2024-09-27T18:23:02.029Z","updated_at":"2026-03-04T13:02:43.320Z","avatar_url":"https://github.com/bursasha.png","language":"PLSQL","readme":"# Advanced SQL, Oracle PL/SQL, and PostgreSQL PL/pgSQL University Course Project 📘\n\n## Overview 🏫\nThis repository contains projects developed during a university course on advanced and in-depth **SQL**, **Oracle PL/SQL**, and **PostgreSQL PL/pgSQL**. \nEach phase of the project builds upon the previous, exploring different aspects of database management, data processing, and query optimization.\n\n## Repository Structure 📁\n- `Phase1/`: Data Generation\n- `Phase2/`: Implementation of Complex Integrity Constraints\n- `Phase3/`: Otter Lineage Tracing in PL/SQL\n- `Phase4/`: SQL Query Optimization and Analysis\n- `Phase5/`: Data Processing and Audit in PostgreSQL\n- `README.md`: Main README file for the repository.\n\n## Technology Stack and Concepts 🔧\n- **Languages and Frameworks:**\n  - **Oracle PL/SQL**\n  - **PostgreSQL PL/pgSQL**\n  - **Docker** for PostgreSQL server setup\n\n- **Key Concepts:**\n  - Procedures, Functions, and Packages\n  - Anonymous Blocks\n  - Triggers\n  - Recursive Queries and Common Table Expressions (CTEs)\n  - Data Preprocessing and Validation\n  - Indexing and Query Optimization\n  - Data Integrity and Constraint Management\n  - Data Loading and Exporting\n  - Audit Report Generation\n\n## Phase Descriptions 📜\n\n### 1. Data Generation 📑\n**Objective:** Generate realistic data for `tbl_CLIENT`, `tbl_PAYMENT`, and `tbl_SERVICE` tables using Oracle PL/SQL.\n**Key Elements:**\n- Dynamic table drop and creation scripts.\n- Procedures for populating tables with synthetic data.\n\n**Reflections and Learnings 🌟**\n- This phase involved understanding the data generation process, ensuring data integrity, and effectively using PL/SQL procedures for bulk data operations.\n\n### 2. Implementation of Complex Integrity Constraints 🛠️\n**Objective:** Manage data integrity and implement business logic using PL/SQL packages and triggers.\n**Key Elements:**\n- Package `pkg_iFix_management` for advanced CRUD operations.\n- Trigger `trg_CheckServiceCostLimit` to enforce financial constraints based on client privilege levels.\n\n**Reflections and Learnings 🌟**\n- This phase highlighted the power of PL/SQL in managing complex business rules and maintaining data integrity through procedural logic and triggers.\n\n### 3. Otter Lineage Tracing in PL/SQL 🦦\n**Objective:** Trace the lineage of otters using recursive queries in PL/SQL.\n**Key Elements:**\n- Recursive Common Table Expressions (CTEs) to retrieve and display otter lineage.\n- Procedures and scripts for table creation, data insertion, and lineage tracing.\n\n**Reflections and Learnings 🌟**\n- This phase provided practical experience with recursive queries and CTEs, showcasing their effectiveness in handling hierarchical data.\n\n### 4. SQL Query Optimization and Analysis 🛠️\n**Objective:** Optimize and analyze SQL queries within the Oracle database environment.\n**Key Elements:**\n- Execution plan analysis and query refactoring.\n- Implementation of indexing, join optimization, and parallel execution.\n\n**Reflections and Learnings 🌟**\n- This phase deepened understanding of SQL performance tuning, emphasizing the importance of efficient query design and execution plan analysis.\n\n### 5. Data Processing and Audit in PostgreSQL 🛠️\n**Objective:** Process and audit data within PostgreSQL, generating reports and ensuring data integrity.\n**Key Elements:**\n- Data loading procedure `load_csv_data` for importing data from CSV files.\n- Audit report generation procedure `save_csv_audit` for exporting monthly audit data.\n\n**Reflections and Learnings 🌟**\n- This phase demonstrated the complete data processing and auditing workflow within a PostgreSQL environment, highlighting practical applications for real-world data management.\n\n## Conclusion 📝\nThis repository encapsulates a comprehensive learning journey through advanced database management, focusing on both Oracle PL/SQL and PostgreSQL PL/pgSQL. \nThe projects demonstrate practical applications of complex SQL concepts, recursive queries, data integrity management, and performance optimization.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbursasha%2Foracle-postgresql-projects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbursasha%2Foracle-postgresql-projects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbursasha%2Foracle-postgresql-projects/lists"}