Assignment 01 Database
Assignment 01 Database
Section : CA
Roll No. : 24
Assignment : 01
TABLES
4.List the name of student who are scoring GPA in between 2.9 and 3.9.
Ans. select sname from student where gpa between 2.9 and 3.9 ;
6. List the students who are scored more than 2.0 but less than 3.5.
Ans. select sname from student where gpa > 2.0 and gpa < 3.5 ;
7. List the students who have born after 1st Jul 96 in the order of the
Date of Birth.
Ans. select sname from student where dob >to_date(dob,'dd-mon-yy') > to_date('01-
jul-96','dd-mon-yy') order by to_date(dob,'dd-mon-yy') ;
12. List names of all student who came from high school having size greater than
1700 and scored GPA less than 3.8.
Ans. select sname from student where sizehs > 1700 and gpa < 3.8 ;
16. List the student names those are having three characters in
their Names.
Ans. select sname from student where sname like '_ _ _' ;
17. List the student names those are starting with ‘H’ and with five characters.
Ans. Select sname from student where sname like 'H_ _ _ _';
21. List the details of the students in order of the ascending of GPA
and descending of DoB.
Ans. select * from student order by gpa asc , dob desc ;
25. Modify the GPA of all students by giving 10% raise in their GPA.
Ans. update student set gpa = gpa + gpa*0.1 ;