Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pngo1997/sql-and-pl-sql-database-management-practice
Practice SQL and PL/SQL for database management, data querying, and trigger implementation.
https://github.com/pngo1997/sql-and-pl-sql-database-management-practice
database-management python query sql sqlite trigger
Last synced: 5 days ago
JSON representation
Practice SQL and PL/SQL for database management, data querying, and trigger implementation.
- Host: GitHub
- URL: https://github.com/pngo1997/sql-and-pl-sql-database-management-practice
- Owner: pngo1997
- Created: 2025-01-30T20:16:29.000Z (21 days ago)
- Default Branch: main
- Last Pushed: 2025-01-30T20:41:12.000Z (21 days ago)
- Last Synced: 2025-01-30T21:24:26.213Z (21 days ago)
- Topics: database-management, python, query, sql, sqlite, trigger
- Language: Jupyter Notebook
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🏗️ SQL and PL/SQL Database Management
## 📜 Overview
This project focuses on SQL and PL/SQL for database management, data querying, and trigger implementation. It consists of **three parts**, covering **data handling using Pandas, PL/SQL procedural logic, and database triggers** for automatic constraint enforcement.## 🎯 Problem Explanation
### **Part 1: Employee Data Analysis Using Pandas**
The task involves working with **employee data (`employee.csv`)** using **Pandas in Python**. The objectives include:
1. **Read and explore the dataset** (dimensions, column names).
2. **Rename columns** for clarity.
3. **Filter employees by gender** (e.g., all male employees).
4. **Find the highest salary among female employees**.
5. **Group salaries by middle initial** and print out all salaries in each group.### **Part 2: Student Score Computation Using PL/SQL**
This part involves working with the **`STUDENT`** and **`WEIGHTS`** tables to compute student grades dynamically.
- **Tables Defined:**
- `STUDENT` (ID, Name, Midterm, Final, Homework).
- `WEIGHTS` (MidPct, FinPct, HWPct).
- **PL/SQL Program Requirements:**
- Extract the grading weights from `WEIGHTS`.
- Compute the **overall score** using the formula:
```
Overall Score = (Midterm * MidPct/100) + (Final * FinPct/100) + (Homework * HWPct/100)
```
- Assign letter grades based on computed scores:
```
90-100 = A
80-89.99 = B
65-79.99 = C
0-64.99 = F
```
- Output **each student's overall score and corresponding letter grade**.