Central Institute of Information Technology ® Plot No.2, Near Jerryl Lawns, RPTS Road, Opp. Momentum Classes, Laxminagar, Nagpur - 440022
Email: ciit_nagpur@yahoo.com Mobile: 9011501192
Join Sql Classes in Nagpur at CiiT - Job Oriented Training
Oracle Sql Course - Learn SQL from basic to an expert level
Job-Oriented Course with Comprehensive Syllabus at an Affordable Fee - 100% Placement Assistance
SQL (Structured Query Language) also known as Sequeal is used to communicate with databases. Sql is designed for
managing data in a relational database. Sql is used in software development by programmers and in data analysis.
Learning SQL can significantly boost your career in IT industry.
SQL Course PreRequisite :
No prior coding experience is required. This course is designed such that anyone or beginners willing to learn SQL can take it.
Create Table Courses(Id Number(2) , Name Varchar(40) ,
Constraint pk_course_id Primary Key(Id), Constraint uk_course_name Unique(Name));
Create Table Students (RollNo Number(4), Name Varchar(15), BirthDate Date, Course Number(2),
Constraint pk_Rollno Primary Key(rollno),
Constraint fk_course Foreign Key(Course) References Courses(Id) );
Insert Into Courses Values(1 , 'Java Course');
Insert Into Courses Values(2 , 'Java FullStack Developer Course');
Insert Into Courses Values(3 , 'SQL Course');
Insert Into Courses Values(4 , 'PL/SQL Course');
Insert into Students Values(1,'Sachin','01-Jan-2000', 3);
Insert into Students Values(2,'Anup','5-Feb-2000', 1);
Insert into Students Values(3,'Nitin','15-Jun-2000', 2);
Insert into Students Values(4,'Anup','5-Feb-2000', 1);
Delete Students Where RollNo = 4; -- Duplicate Row
Update Students Set Name = 'Mr.'||Name Where RollNo = 1;
Select * from Tab; -- Table List
Select * from Courses; -- List all courses
Select * from Students; -- List all Students
Select s.RollNo, s.Name, s.BirthDate, c.Name Course -- List data from multiple tables
From Students s, Courses c -- Cartesian product
Where c.id = s.course -- Equi Join
Order by s.RollNo Asc; -- Sort data in ascending order of roll no
Create View Course_Student_View As -- Create VIEW
Select c.Name Course, Count(s.rollno) Total_Students
From Courses c, Students s
Where c.id = s.course
Group by c.name;
Desc Course_Student_View;
Select * from Course_Student_View; -- List data from VIEW