Nairit Dbms
Nairit Dbms
RollNo Int 3
Name varchar 15
Gender varchar 6
City varchar 20
DOB Date 8
Blood_Group varchar 5
Remark varchar 10
14. In the Database file Add these Fields: (Total: Datatype- Number 3 digits,
Percentage: Datatype – Number 3 digits, Grade: Datatype- Char with 2
letters)
Stud_No Int 2
Name Varchar 15
RollNo Int 3
English int 3
Math int 3
Science int 3
10.
Display all the record in ascending order of names using SQL .
11.
Display all the record in descending order of names using SQL .
12.
Display the rollno and name whose English marks are more than 70.
13.
Display the maximum and minimum marks for English using SQL.
14.
Display the sum of marks for Math using SQL command.
15.
Display all the students record who needs improvement in Science.
(Marks from 30 to 70)
16.
Display name, rollno, marks of 3 subjects and total(as different column) in
SQL.
17.
Change the marks of English scored by roll no 102 to 89.
Solution: