
Learn the fundamentals of sql for web developers, including relational databases, tables, schemas, foreign keys, and basic queries using MySQL and PostgreSQL, plus setting up a local development environment.
Define streams and students tables with bigint unsigned primary keys, foreign keys to classes, and on delete set null, establishing form and stream relationships across the school schema.
Insert data into exams, student_details, activities, and school_settings tables using insert statements. The video explains primary and foreign keys, and fields like student_id, subject, exam1–3, average, grid, points, and teacher.
Learn to write basic select queries across the classes, streams, and subjects tables, selecting all or specific columns, using where, order by, and limit clauses.
Drop tables safely by removing dependent tables in reverse order of dependencies, account for foreign keys, and understand that dropping a table removes it entirely and requires recreation.
Build a school management system with Laravel query builder by creating a new Laravel project, configuring MySQL, and running migrations to create necessary tables.
Builds Laravel class views by creating the index and Blade files, looping through the classes table, and wiring routes, controllers, and a store method to insert and display classes.
Create and wire a stream controller using php artisan make:controller, build a query that joins streams with classes on class_id, and render streams index and create views.
Develop the exams management workflow with an exams controller, implementing create, store, and show, joining students, streams, classes, and subjects, and calculating averages, grids, and points.
Create exams views in blade to post student exam data, populate subjects from the subjects table, and show exam results with subject, exams, average, and remarks.
Calculate the exam average and grid in the exam model by filtering exams, and create a student_details model with a belongs-to relation to student and fields student_id, primary_school, and kcp.
Refactor the student controller to use Laravel Eloquent models, add a student activity model, and implement eager loading, unique admission number validation, and CRUD for class and stream relations.
Refactor the student report using Laravel Eloquent relationships and eager loading to fetch stream and class names, calculate averages, and assemble subject performance, exams, and activities in the student report.
What You'll Learn
1. Introduction to SQL
We start by breaking down what SQL is and why it matters for web development. You’ll learn the fundamentals and see how SQL is the backbone of many modern web applications.
2. Core SQL Concepts
Next, we dive into the essential concepts that every developer should know:
Data Manipulation: Learn how to create, read, update, and delete records.
Table Design: Understand the basics of designing efficient tables.
Relationships: See how data is linked across different tables.
3. Query Builders Using Laravel
In this module, we'll explore Laravel’s query builder. You’ll discover how to write clean and efficient queries without getting lost in complex syntax. This tool makes it easier to interact with your database in a way that is both powerful and easy to understand.
4. Laravel Eloquent Focus
Finally, we turn to Laravel’s Eloquent ORM. This part of the course will show you how to work with your database using models, making data operations simple and intuitive. You’ll build on what you’ve learned to integrate Eloquent seamlessly into your student management system.
Why This Course?
Step-by-Step Guidance: Each concept builds on the previous one, ensuring that you can follow along even if you’re new to SQL.
Real-World Application: Everything is taught within the context of building a mini student management system. This means you’ll see how the theory works in practice.
Practical Examples: Instead of abstract theory, you’ll get hands-on experience with code and real-life scenarios.
Join me on Udemy to transform your understanding of SQL and take your web development skills to the next level. Whether you’re a beginner or looking to sharpen your skills, this course is designed to be simple, clear, and to the point—so you can focus on what really matters: building great applications.