Professional Documents
Culture Documents
Mysql
Mysql
(
student_id int AUTO_INCREMENT NOT NULL,
student_fname varchar(30) NOT NULL,
student_mname varchar(30) ,
student_lname varchar(30) NOT NULL,
student_email varchar(30) NOT NULL,
student_phone varchar(15) NOT NULL,
student_alternate_phone varchar(15),
enrollment_date TIMESTAMP NOT NULL,
years_of_exp int NOT NULL,
student_company varchar(30) ,
batch_date varchar(30) NOT NULL,
source_of_joining varchar(30) NOT NULL,
location varchar(30) NOT NULL,
PRIMARY KEY(student_id),
UNIQUE KEY (student_email)
);
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,years_of_exp,stude
nt_company,batch_date,
source_of_joining,location) VALUES
('rohit','sharma','rohit@gmail.com','9191574733',6,'walmart','5-1-
2023','linkedin','banglore');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,years_of_exp,stude
nt_company,batch_date,
source_of_joining,location) VALUES
('virat','kohli','virat@gmail.com','9291574733',4,'netflix','5-1-
2023','linkedin','delhi');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,years_of_exp,stude
nt_company,batch_date,
source_of_joining,location) VALUES
('shubhman','gill','gill@gmail.com','9391574733',1,'paypal','19-2-
2023','youtube','pune');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,years_of_exp,stude
nt_company,batch_date,
source_of_joining,location) VALUES
('shreyas','iyer','shreyas@gmail.com','9491574733',2,'amazon','19-2-
2023','friend','mumbai');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,years_of_exp,stude
nt_company,batch_date,
source_of_joining,location) VALUES
('nitish','rana','nitish@gmail.com','9591574733',1,'microsoft','2-3-
2023','linkedin','gurugram'),
('rahul','dravid','rahul@gmail.com','9691574733',8,'tcs','5-1-
2023','google','banglore'),
('vvs','laxman','vvs@gmail.com','9791574733',7,'wipro','5-1-
2023','youtube','hyderabad'),
('ishan','kishan','ishan@gmail.com','9891574733',1,'infosys','19-2-
2023','linkedin','patana');
select student_id ,enrollment_date, student_fname,
student_lname,student_email,years_of_exp, student_company,batch_date,
source_of_joining, location from students;
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,selected_course,ye
ars_of_exp,student_company,batch_date,
source_of_joining,location) VALUES
('rohit','sharma','rohit@gmail.com','9191574733',3,6,'walmart','5-1-
2023','linkedin','banglore');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,selected_course,ye
ars_of_exp,student_company,batch_date,
source_of_joining,location) VALUES
('virat','kohli','virat@gmail.com','9291574733',1,4,'netflix','5-1-
2023','linkedin','delhi');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,years_of_exp,stude
nt_company,batch_date,
source_of_joining,location) VALUES
('shubhman','gill','gill@gmail.com','9391574733',1,'paypal','19-2-
2023','youtube','pune');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,selected_course,ye
ars_of_exp,student_company,batch_date,
source_of_joining,location) VALUES
('shreyas','iyer','shreyas@gmail.com','9491574733',2,2,'amazon','19-2-
2023','friend','mumbai');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,selected_course,ye
ars_of_exp,student_company,batch_date,
source_of_joining,location) VALUES
('nitish','rana','nitish@gmail.com','9591574733',4,1,'microsoft','2-3-
2023','linkedin','gurugram'),
('rahul','dravid','rahul@gmail.com','9691574733',2,8,'tcs','5-1-
2023','google','banglore'),
('vvs','laxman','vvs@gmail.com','9791574733',1,7,'wipro','5-1-
2023','youtube','hyderabad'),
('ishan','kishan','ishan@gmail.com','9891574733',3,1,'infosys','19-2-
2023','linkedin','patana');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,selected_course,ye
ars_of_exp,student_company,
batch_date,source_of_joining,location) VALUES
('rohit','sharma','rohit@gmail.com','9191574733',3,6,'walmart','5-1-
2023','linkedin',
'banglore');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,selected_course,ye
ars_of_exp,student_company,
batch_date,source_of_joining,location) VALUES
('virat','kohli','virat@gmail.com','9291574733',1,4,'netflix','5-1-
2023','linkedin','delhi');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,years_of_exp,stude
nt_company,
batch_date,source_of_joining,location) VALUES
('shubhman','gill','gill@gmail.com','9391574733',1,'paypal','19-2-2023','youtube',
'pune');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,selected_course,ye
ars_of_exp,student_company,
batch_date,source_of_joining,location) VALUES
('shreyas','iyer','shreyas@gmail.com','9491574733',2,2,'amazon','19-2-
2023','friend',
'mumbai');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,selected_course,ye
ars_of_exp,student_company,batch_date,
source_of_joining,location) VALUES
('nitish','rana','nitish@gmail.com','9591574733',4,1,'microsoft','2-3-
2023','linkedin','gurugram'),
('rahul','dravid','rahul@gmail.com','9691574733',2,8,'tcs','5-1-
2023','google','banglore'),
('vvs','laxman','vvs@gmail.com','9791574733',1,7,'wipro','5-1-
2023','youtube','hyderabad'),
('ishan','kishan','ishan@gmail.com','9891574733',3,1,'infosys','19-2-
2023','linkedin','patana');
INSERT INTO
students(student_fname,student_lname,student_email,student_phone,selected_course,ye
ars_of_exp,student_company,
batch_date,source_of_joining,location) VALUES
('jasprit','bumrah','jasprit@gmail.com','9198574733',8,4,'paytm','5-1-
2023','linkedin',
'ahmedabad');