Video Streaming DBMS
Oracle SQL-based Database System for a YouTube-like Platform
Video Streaming Database System
This project is a Database Management System (DBMS) design for a video streaming platform inspired by YouTube. It models the backend data structure and logic using Oracle SQL, focusing on key functionalities such as user accounts, video uploads, views, likes, subscriptions, and user history.
๐ Project Objective
To design and implement a relational database system that:
- Handles content creation and video uploads
- Tracks user interaction through likes, dislikes, and comments
- Maintains user watch history and subscriptions
- Supports queries for recommendation and analytics
๐ ER Diagram (Entity-Relationship)

ER Diagram visualizing the entities (User, Video, History, Likes, Comments, etc.) and their relationships.
๐งฉ Schema Diagram

Schema Diagram showing tables, attributes, data types, primary/foreign keys, and their relationships.
The schema diagram provides a tabular-level view of the database after transformation from ER to relational format. It outlines:
- All table structures and column definitions
- Primary and foreign key constraints
- Cardinality and referential integrity
๐ ๏ธ Key Features
- โ Fully normalized schema
- โ User-video interactions (views, likes, comments)
- โ Subscriptions and history tracking
- โ Analytics queries (top-liked, most-viewed, active users)
- โ Views and subqueries for modularity and maintainability
๐งช Sample SQL Queries
```sql โ Top 5 most viewed videos SELECT video_title, view_count FROM videos ORDER BY view_count DESC FETCH FIRST 5 ROWS ONLY;