Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

Shri Gulab Rai Montessori Senior

Secondary School

Computer
Practical File
Session 2024 – 2025

Submitted By: Submitted To:


Navya Gangwar Mr. Manish Saxena
XII - A1
17
CERTIFICATE

This is to certify that Navya Gangwar of Class


XII-A1 has proficiently completed the project-
work undertaken on the topic “Diffraction of
Light” during the academic session 2024-25.
She has prepared the project under my
guidance and as per the norms and guidelines
prescribed by the Central board of secondary
Education (CBSE).

___________ ___________
Principal's Teacher’s
Signature Signature
ACKNOWLEDGEMENT
It gives me immense pleasure to present the
project –"Computer Practical File". In the
accomplishment of this project successfully,
many people have bestowed upon me their
blessings and their heart pledged support. It
would not have been possible without the kind
support of my teacher in charge,
Mr. Manish Saxena (PGT Computer) under
whose guidance and constant supervision the
project was brought to the present state. His
suggestions and instructions have served as the
major contributors towards the completion of
the project.
INDEX

• Library
• School fee management
• Store
• Hotel
• Doctor patient
FEES MANAGEMENT
Student Table
STUDENT_ID FIRST_NAME LAST_NAME GPA ENROLLMENT_DATE MAJOR

201 Shivansh Mahajan 8.79 2021-09-01 09:30:00 Computer


Science
202 Umesh Sharma 8.44 2021-09-01 08:30:00 Maths
203 Rakesh Kumar 5.60 2021-09-01 10:00:00 Biology
204 Radha Sharma 9.20 2021-09-01 12:45:00 Chemistry
205 Kush Kumar 7.85 2021-09-01 08:30:00 Physics
206 Prem Chopra 9.56 2021-09-01 09:24:00 History
207 Pankaj Vats 9.78 2021-09-01 02:30:00 English
208 Navleen Kaur 7.00 2021-09-01 06:30:00 Maths
Program Table

STUDENT_REF_ID PROGRAM_NAME PROGRAM_START_DATE


201 Computer Science 2021-09-01 00:00:00
202 Mathematics 2021-09-01 00:00:00
208 Mathematics 2021-09-01 00:00:00
205 Physics 2021-09-01 00:00:00
204 Chemistry 2021-09-01 00:00:00
207 Psychology 2021-09-01 00:00:00
206 History 2021-09-01 00:00:00
203 Biology 2021-09-01 00:00:00

Scholarship Table

STUDENT_REF_ID SCHOLARSHIP_AMOUNT SCHOLARSHIP_DATE

201 5000 2021-10-15 00:00:00


202 4500 2022-08-18 00:00:00
203 3000 2022-01-25 00:00:00
201 4000 2021-10-15 00:00:00

1. Write a SQL query to fetch “FIRST_NAME” from the Student table in


upper case and use ALIAS name as STUDENT_NAME.

A. SELECT upper(FIRST_NAME) as STUDENT_NAME from


Student;

2. Write a SQL query to fetch unique values of MAJOR Subjects from


Student table.
A. SELECT DISTINCT MAJOR from STUDENT;
or
SELECT MAJOR FROM STUDENT GROUP BY(MAJOR);

3. Write a SQL query to print all Student details from Student table order by
FIRST_NAME Ascending and MAJOR Subject descending .

A. SELECT * FROM Student


ORDER BY FIRST_NAME , MAJOR DESC;

4. Write a SQL query to print details of the Students with the FIRST_NAME
as ‘Prem’ and ‘Shivansh’ from Student table.

A. SELECT * from Student


WHERE FIRST_NAME IN ('Prem' , 'Shivansh');

5. SELECT STUDENT_ID, MAJOR from Student


WHERE FIRST_NAME NOT IN ('Prem', 'Shivansh');

Output:

STUDENT_ID MAJOR

202 Maths
203 Biology
204 Chemistry
205 Physics
207 English
208 Maths

6. SELECT FIRST_NAME, MAJOR FROM Student


WHERE FIRST_NAME LIKE '%a';

Output:

FIRST_NAME MAJOR

Radha Chemistry
7. SELECT Major, COUNT(*) as TOTAL_COUNT FROM Student
WHERE MAJOR = ‘Computer Science’;

Output:

MAJOR TOTAL_COUNT

Computer Science 1

8. SELECT MAJOR, COUNT(MAJOR) from Student group by MAJOR


order by COUNT(MAJOR) DESC;

Output:

MAJOR COUNT(MAJOR)
Biology 1
Chemistry 1
Computer Science 1
English 1
History 1
Physics 1
Maths 2
Q. Show all the registration n0. of those students
who have submitted their fees timely.
Q. Show all the registration n0. of those students
who have paid more than 13000.

Q. Show the fees of the students class-wise.

Q. Show the registration n0s of those students who


have submitted their fees on 2 July 2024.

Q. Write a command to decrease the fees of class


11 students by 1000 rupees.
update fees set fees_paid=fees_paid-1000 where
class="11";
Q. Write a command to display all the details in
descending order by fees paid
select * from fees order by fees_paid desc;
Q. Write a command to insert a new record of a
student with reg no=”789”, class 7 with appr. fees
in table 1.
Insert into fees value(789, 7, 6200);
Q. There has been a typing error. Write a
command to rectify the mistake in Table 2 and
change the fees to 18000.
update fees set fees_paid=18000 where
class="12";
QUESTION 2. [lIbrary maNagEmENT]
Table 1-

Table 2-

Q. Show all the authors' names who have written a


physics book.
Q. Show the quantity of books subject-wise.

Q. Display the names of students who have issued


maths books.

Q. Show details of the book whose price is more


than 500.

Q. Write a command to increase the number of


computer books by 20.
update book set qty=qty+ 20 where
subject=”computer”;
Q. Write a command to insert the details of a book
of “economics” by “S.Chand” of the book no “32”
Insert into book value (32, ”macroeconomics”,
”S.chand”, ”economics”, 35, 600, “2024-04-11”);
Q. Write a command to display the quantity of rd
sharma books.
Select qty from book where author= ”rd sharma”;
Q. Write a command to delete the field (dop) from
table-1
Alter table book drop column dop;
QUESTION 3. [STOrE maNagEmENT]
Table 1-

Table 2-

Q. Show the name of the customer who has bought


pencils.

Q. Show the total number of Vmax pens sold.


Q. Show a list of items and their
price in ascending order by their price.

Q. Show all the details of scale( product number,


price, qty, and name of the purchase).

Q. Write a command to increase the number of


scales by 10
update product set qty=qty+10 where
pname=”scales”;

Q. Write a command to display the customer name


who has bought all three items
Select sold_to from sales where pname=”vmax
pen” and pname=”scale” and pname=”pencil”;
Q. Write a command to insert a new customer
“Kanika”, who bought only 2 pencils.
Insert into sales value(“pencil”,2, 20, “kanika”);

Q. Write a command to display the total bill paid


by raju.
Select sum(bill) from sales where sold_to=”raju”;
QUESTION 4. [HOSpITal maNagEmENT]
Table 1-

Table 2-

Table 3
Q. Show the list of patients of age less than 40
years.

Q. List of patients who will meet “Dr. Shashi”

Q. Show the IDs of patients who have an


appointment on 12 June 2024

Q. Show the list of patient names and the specialty


of doctors whom they want to seek.

Q. There has been a typo in Table 1. Write a


command to make the appropriate correction in
the spelling
update doctors set speciality=”dermatology” where
doctor_id=”101”;

Q. Write a command to show the doctor id of the


doctors with the no of appointments
Select doctor_id, count(doctor_id) from
appointments group by doctor_id;

Q. Write a command to insert a doctor’s id “141”,


and the doctor's name as “Dr. Vijay” provided that
he is a pediatrician.
Insert into doctors value (141,”Dr
Vijay”,”pediatrics”);

Q. write a command to display the list of names of


patients and the doctor whom they want to
approach.
select p.patient_name,d.doctornm from
appointments a,doctors d, patients p where
a.patient_id=p.patient_id and
a.doctor_id=d.doctor_id;
QUESTION 5. [HOTEl maNagEmENT]
Table 1-

Table 2-

Q. Show the list of names of guests who are


members.
Q. Show

the names of guests who have stayed in room no


205.

Q. Show the guests names who bought the


membership in 2024

Q. Show details of customers who checked -in on 6


June 2024.
Q. Write a command to display the room no and
the number of times they have been allotted to the
guests.
select room_no, count(room_no) from rooms
group by room_no;

Q. Which guest has paid the max bill and what is


the amount?
select names, max(bill) from rooms;
Q. Write a command to display the names of
guests who checked in in the month of MAY.
select names from rooms where checkin between
"2024-05-01" and "2024-05-31";

Q. Write a command to delete the record of the


person from table 2 who does not have
membership.
Delete from memberships where member=”no”;

You might also like