Second File
Second File
Practical File
Term 2
Submitted by –
Name: Yogita Bhagchandani
Class: 11 COM A
Teacher in charge: Mrs. Vidya V
Q1.
a. Display the names of all Games with their GCodes.
b. Display the details of those games which are having Fees more
than 7000
c. Display the record of all the member whose fees is less than
8000
a. Display the Ename and salary of all employees whose salary more
than 20000
Code:
Select Ename, salary from employee where ename='Joseph';
f. Display the empno and name of employees whose salary is less than
12000
a. To create a database
b. To create a student table with the student id, class, section, gender,
name, dob, and marks as attributes where the student id is the
primary key.
Ans. UPDATE student SET marks = marks + (marks * 0.5) where marks >20;
i. To add a new column email in the above table with appropriate data
type
Ans. SELECT studentid, name, dob FROM student WHERE dob BETWEEN
‘2005-01-01’ AND ‘2005-12-31’;
m. To display Studentid, Name, DOB, Marks, Email of those male
students in ascending order
Ans. SELECT studentid, name, dob, marks, email FROM student WHERE
gender=‘Male’ ORDER BY name;
Ans. SELECT studentid, name, dob, gender, marks, email FROM student
ORDER BY marks DESC;