Back to Browse

SQL Server |Student Management System | Create Tables,View,Stored procedure,Insert Data & JOIN Query

23 views
Apr 23, 2026
8:00

In this video, we build a simple Student Management System in SQL Server from scratch using ChatGPT. You will learn how to: Create Class, Section, and Student tables Use INT IDENTITY for primary keys Add NOT NULL constraints Define foreign key relationships Use DATETIME with default GETDATE() Insert sample data Write a SELECT query using INNER JOIN Create A view Create A Stored procedure ChatGPT Prompt Used in This Video Create SQL Server scripts for a Student Management System. Requirements: - Create three tables: Class, Section, Student - Use INT IDENTITY(1,1) for all primary keys - Add NOT NULL constraints for required fields - Include CreatedDate column with DATETIME and default GETDATE() - Add proper foreign key relationships: - Student.ClassId → Class.ClassId - Student.SectionId → Section.SectionId Constraints & Best Practices: - Use meaningful column names - Add UNIQUE constraints where applicable (e.g., AdmissionNumber, ClassCode, SectionCode) - Add indexes on foreign keys - Follow clean, production-ready SQL Server coding standards - Use schema dbo Sample Data: - Insert 3 records into Class - Insert 3 records into Section - Insert 5 records into Student Output Required: 1. DROP TABLE IF EXISTS (in correct order) 2. CREATE TABLE scripts 3. INSERT statements with realistic data 4. One SELECT query using INNER JOIN to fetch student details with Class and Section 5. Order results by ClassId, SectionId, RollNumber Ensure: - Script runs without errors - Proper formatting and comments for each section 🎯 What You Will Learn Database design basics Table relationships (Primary Key & Foreign Key) Writing clean SQL scripts Using JOINs to fetch relational data #sqlserver #dotnet #sqltutorialforbeginners #studentmanagementsystem #databaseprogramming #sqljoins #storedprocedure #views #fullstackdevelopment #nexCoding

Download

1 formats

Video Formats

360pmp46.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

SQL Server |Student Management System | Create Tables,View,Stored procedure,Insert Data & JOIN Query | NatokHD