Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
29 views
6 pages
VARUN
practical
Uploaded by
singhvarun28012007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download
Save
Save VARUN For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
29 views
6 pages
VARUN
practical
Uploaded by
singhvarun28012007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save VARUN For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save VARUN For Later
You are on page 1
/ 6
Search
Fullscreen
IP PRACTICAL FILE
CONSIDER THE FOLLOWING TABLE STUDENT
AND ANSWER THE FOLLOWING:
a. Create above table student
(Rollno int primary key,
Name varchar(20),
Gender char(20),
Marks int,
DOB date
Mobile_no int,
Stream char (20));
b.Insert data in table student
into student values('1.','Raj
Kumar','M',93,'17-10 -
2000',9586774748,'Science');
insert into student values('2.','Deep
Singh','M',98,'22-08 -
1996',8988886577,'Commerce');
insert into student values('3.','Ankit
Sharma','M',76,'02-02 -2000',NULL,'Science');
insert into student values('4.','Radhika
Gupta','F',78,'03-12 -
1999',9818675444,'Humanities');
insert into student values('5.','Payal
Goel','F',82,'21-04 -
1998',9845639990,'Vocational');
insert into student values('6.','Diksha
Sharma','F',80,'17-12 -
1999',9897666650,'Humanities');
insert into student values('7.','Gurpreet
Kaur','F',NULL,'04-01 -
2000',7560875609,'Science');
insert into student values('8.','Akshay
Dureja','M',90,'15-05 -
1997',9560567890,'Commerce');
insert into student values('9.','Shreya
Anand','F',70,'08-09 -1999',NULL,'Vocational');
insert into student values('10.','Prateek
Mittal','M',75,'25-12-2000',9999967543,'Science');
c.display all students from table
ANS. select *from student;
d.display streams from table removing duplicate
entries
ANS.Select distinct Stream from student;
E. display name, gender and DOB of students
where Dob is between 02-02-2000 to 25-12-
2000
ANS.Select Name,Gender,DOB from student
where DOB between ‘02-02-2000’ and ‘25-12-
2000’;
F. display names of students that ends with ‘a’
ANS.Select Name from student where Name
like’%a’;
G.display students whose name has ‘u’ in them
ANS. Select * from student where Name like’%u
%’;
H. display students in alphabetical order of
names
ANS. Select * from student order by Name;
I.display name and mobile number of students
where there is no mobile_no
ANS. Select Name,Mobile_no from student
where Mobile_No =’NULL’;
J. display the stream of male students
ANS. Select stream from student
where Gender=’M’;
SQL PRACTICAL
BY VARUN SINGH
11-E
You might also like
MySQL Query Questions
PDF
No ratings yet
MySQL Query Questions
7 pages
Assignment Constraints and OPerators
PDF
No ratings yet
Assignment Constraints and OPerators
7 pages
Lab Ism 2
PDF
No ratings yet
Lab Ism 2
152 pages
Database SQL Query
PDF
No ratings yet
Database SQL Query
17 pages
DBMS
PDF
No ratings yet
DBMS
13 pages
Raghav Dbms Ex - 1c
PDF
No ratings yet
Raghav Dbms Ex - 1c
8 pages
Student DB
PDF
No ratings yet
Student DB
11 pages
New Dbms Practical
PDF
No ratings yet
New Dbms Practical
16 pages
My SQL
PDF
No ratings yet
My SQL
3 pages
Lab-4 & 5
PDF
No ratings yet
Lab-4 & 5
7 pages
DBMS PRG
PDF
No ratings yet
DBMS PRG
16 pages
CS614 Assignment 1 Solution Fall 2024
PDF
No ratings yet
CS614 Assignment 1 Solution Fall 2024
4 pages
SQL Practical File Kalpit Sharma
PDF
No ratings yet
SQL Practical File Kalpit Sharma
4 pages
Dbms Lab 2
PDF
No ratings yet
Dbms Lab 2
9 pages
Superior University Lahore: Faculty of Computer Science & IT
PDF
No ratings yet
Superior University Lahore: Faculty of Computer Science & IT
11 pages
Project Report DB
PDF
No ratings yet
Project Report DB
11 pages
SQL Experiment Ans
PDF
No ratings yet
SQL Experiment Ans
16 pages
Computer Department Database Computer Department Database: Ge Practical 2
PDF
No ratings yet
Computer Department Database Computer Department Database: Ge Practical 2
9 pages
DBMS Output Atharv
PDF
No ratings yet
DBMS Output Atharv
15 pages
College Database Lab Exercise and Example
PDF
No ratings yet
College Database Lab Exercise and Example
9 pages
Sanket - Assignment 9
PDF
No ratings yet
Sanket - Assignment 9
12 pages
Database Management System - Practical File
PDF
No ratings yet
Database Management System - Practical File
11 pages
Create Database Bit204
PDF
No ratings yet
Create Database Bit204
1 page
SQL Query
PDF
No ratings yet
SQL Query
5 pages
1
PDF
No ratings yet
1
6 pages
SQL Practical File
PDF
No ratings yet
SQL Practical File
10 pages
Sql-Module-Practical Webinar
PDF
No ratings yet
Sql-Module-Practical Webinar
3 pages
Nitindbms
PDF
No ratings yet
Nitindbms
14 pages
Computer Lab - Practical Question Bank
PDF
No ratings yet
Computer Lab - Practical Question Bank
8 pages
Dhanya Compressed
PDF
No ratings yet
Dhanya Compressed
50 pages
DDBS Lab File
PDF
No ratings yet
DDBS Lab File
33 pages
SQL
PDF
No ratings yet
SQL
1 page
Information Practices HW Answers
PDF
No ratings yet
Information Practices HW Answers
2 pages
Final IP File
PDF
No ratings yet
Final IP File
28 pages
Note 1-4
PDF
No ratings yet
Note 1-4
10 pages
Akdbms
PDF
No ratings yet
Akdbms
28 pages
Dbms 2022022 Saloni Yadav Practical File-Compressed
PDF
No ratings yet
Dbms 2022022 Saloni Yadav Practical File-Compressed
27 pages
ASSESSEMENTS SQL - Batch 10
PDF
No ratings yet
ASSESSEMENTS SQL - Batch 10
14 pages
Last Drawio
PDF
No ratings yet
Last Drawio
2 pages
SQL Queries
PDF
No ratings yet
SQL Queries
8 pages
Assignment 1-4
PDF
No ratings yet
Assignment 1-4
24 pages
Mysql Practice
PDF
No ratings yet
Mysql Practice
10 pages
Set 3
PDF
No ratings yet
Set 3
5 pages
Lab Exam Question of DBMS
PDF
No ratings yet
Lab Exam Question of DBMS
6 pages
Part B Pgm10 DBMS Lab College Database
PDF
No ratings yet
Part B Pgm10 DBMS Lab College Database
7 pages
Accenture Solution
PDF
No ratings yet
Accenture Solution
1 page
SQL Word
PDF
No ratings yet
SQL Word
18 pages
(Assignment - Mark Between 0.00 and 100.00) (Exam - Mark Between 0.00 and 100.00) (Module - Overall Between 0.00 and 100.00)
PDF
No ratings yet
(Assignment - Mark Between 0.00 and 100.00) (Exam - Mark Between 0.00 and 100.00) (Module - Overall Between 0.00 and 100.00)
4 pages
SQL Handsonsolution - NKV
PDF
No ratings yet
SQL Handsonsolution - NKV
14 pages
MySQL Queries Students Table Fully Updated
PDF
No ratings yet
MySQL Queries Students Table Fully Updated
3 pages
Leet Code Problems DBMS
PDF
No ratings yet
Leet Code Problems DBMS
14 pages
I Am Sharing 'Standard XII Practicals (24-25) ' With You
PDF
No ratings yet
I Am Sharing 'Standard XII Practicals (24-25) ' With You
12 pages
SQL Excercises
PDF
No ratings yet
SQL Excercises
12 pages
54620
PDF
No ratings yet
54620
25 pages
DBMS All PR
PDF
No ratings yet
DBMS All PR
13 pages
Task
PDF
No ratings yet
Task
8 pages
Document 9
PDF
No ratings yet
Document 9
23 pages
5 DBMS
PDF
No ratings yet
5 DBMS
6 pages