Collection of laboratories and projects of the subject "Modelos y de Bases de Datos" at the Escuela Colombiana de Ingeniería Julio Garavito (ECI).
This repository documents the learning process of the MBDA university course, focusing on relational database design, SQL development, data modeling, and iterative database delivery. It includes laboratory assignments and a major iterative project that demonstrates proficiency in SQL, ER/logical modeling with Astah, trigger and view design, CRUD operations, and database security.
Feel free to explore and use any of the resources here for non-commercial and educational purposes. If you find something useful, you're welcome to reference it in your own learning journey.
The labs are dedicated to progressive learning of relational database concepts, going from basic logical modeling to full SQL implementations with security and constraints.
Introduction to relational database fundamentals. Covers:
- Entity-Relationship and logical data modeling
- Primary keys, foreign keys, and unique keys (
claves lab01) - Astah-based logical diagram (
lab01 asta.asta) - Visual logical model export (
logico.png)
Continuation of Lab 01 with an evolution of the relational schema and model organization. Covers:
- Refinement of the logical model
- Class and relationship adjustments
First structured SQL implementation lab. Covers:
- Table creation with DDL
- Basic query writing and DML operations
- Schema consistency with the logical model
A domain-focused laboratory centered on modeling and implementing a barter/exchange system. Covers:
- Object-oriented analysis of the "Trueques" domain
- Astah-based logical model (
TruequesLab04.asta) - SQL DDL and DML implementation (
Laboratorio04.sql) - Logical schema documentation (
LOGICOO.txt)
A comprehensive SQL lab covering advanced database features. Covers:
- Trigger design and implementation
- View creation and index usage
- Full CRUD operation scripting
- Implementation of Packages and Security
- Astah documentation (
LAB05.asta) - Formal lab report (
LAB 05.docx)
Final laboratory integrating all course concepts into a complete database solution. Covers:
- Full schema design and SQL implementation
- Integration of constraints, triggers, views, and security
- Complete deliverable packaging
- Implementation of XML
The main course project: a fully functional hospital database system designed to solve day-to-day problems in data flow and management, unifing de system with appointment scheduling and access to patient medical records. Developed across two delivery cycles with incremental refinement.
Stakeholders: Ministry of Health (real-time resource coordination and demand monitoring), health authorities, and hospital administrative staff.
- Project definition document (
00 DefProyecto.pdf) - Logical model diagrams (
00 MODELO-LOGICO-A.png,00 MODELO-LOGICO-B.png) - Full SQL scripts covering:
- DDL: Tables, attributes, primary keys, foreign keys, unique keys
- DML: Data population (valid and invalid cases)
- Queries: Consultas, tuples, actions
- Triggers: Valid and invalid trigger scenarios
- Views: View creation and validation
- CRUD: Complete create, read, update, delete operations
- Security: Role-based actors and access control
- Cleanup scripts: Drop tables, triggers, views, CRUD, security
- Updated logical model (
MODELO LOGICO.png) - Full Astah design file (
00 CareBaseSystemsF.asta) - Draw.io project diagram (
Ciclo 2 Proyecto.drawio) - Refined with extensions of SQL scripts for all DDL, DML, triggers, views, indices, CRUD, and security
- Extended test cases and data scenarios
- SQL (Oracle SQL Developer)
- Astah Professional (ER and logical modeling)
- Draw.io (diagram design)
- Git
Distributed under the MIT License. See LICENSE for more information.
