Datenbanken & Informationssysteme
import DriveAsset from ’../../../../components/DriveAsset.astro’;
🗂️ Course Assets (Google Drive)
Section titled “🗂️ Course Assets (Google Drive)”📐 Relational Algebra Fundamentals
Section titled “📐 Relational Algebra Fundamentals”The foundational operators in relational algebra:
| Operator | Symbol | Meaning | Example |
|---|---|---|---|
| Selection | Rows satisfying predicate | ||
| Projection | Select specific columns | ||
| Natural Join | Join on matching attribute names | ||
| Theta Join | General condition join | ||
| Rename | Renames relation or attributes |
Example Query
Section titled “Example Query”Retrieve all students enrolled in “Datenbanken” with a grade :
💻 Dockerized Lab Setup
Section titled “💻 Dockerized Lab Setup”# docker-compose.yml for local database labversion: '3.8'
services: postgres-db: image: postgres:16-alpine container_name: uni_postgres restart: always environment: POSTGRES_USER: uni_user POSTGRES_PASSWORD: secretpassword POSTGRES_DB: university_vault ports: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data
volumes: pgdata: