Designing and querying relational databases. From simple SELECT statements to complex JOINs and database design for real applications.
A full relational database design for a college system โ students, courses, grades, faculty, and enrollment with normalized tables and proper constraints.
SQLite database integrated with Python for storing game scores, player data, and leaderboard rankings for a simple game project.
Collection of solved SQL problems ranging from basic queries to advanced JOINs, subqueries, and window functions.
-- College Management Database CREATE TABLE students ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, roll_no TEXT UNIQUE NOT NULL, branch TEXT NOT NULL, year INTEGER ); CREATE TABLE courses ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, credits INTEGER, faculty TEXT ); CREATE TABLE enrollments ( student_id INTEGER REFERENCES students(id), course_id INTEGER REFERENCES courses(id), grade TEXT, semester TEXT, PRIMARY KEY (student_id, course_id) ); -- Get all students with their courses and grades SELECT s.name, s.roll_no, c.name AS course, e.grade FROM students s JOIN enrollments e ON s.id = e.student_id JOIN courses c ON c.id = e.course_id WHERE s.branch = 'IT' ORDER BY s.name;