Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 18

Shri Gulab Rai Montessori

Senior Secondary School

Session: 2024 – 2025

Computer
Practical File

Submitted By: Submitted To:


Jahnavi Bhalla Mr. Manish
Saxena

Class: XII - A1
Roll No. : 14
CERTIFICATE
This is to certify that Jahnavi Bhalla of class XII-A1
has successfully completed the “Computer Practical File”
under the guidance of Mr Manish Saxena (subject
teacher) during the year 2024-25 in the partial
fulfillment of the requirement of the Central Board of
Secondary Education
(C.B.S.E.)
It is further certified that this project is the
individual and bona fide work of the candidate.

___________ ___________
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.
I would also like to express my gratitude towards my
parents for their kind cooperation and encouragement
which helped me in the completion of this project. I am
also thankful to the C.B.S.E for giving me such an
amazing opportunity to do this project. Last but not the
least, I thank my friends who shared the necessary
information and useful web links for preparing my
project. Thanks again to all.
INDEX

Library
School fee management
Store
Hotel
Doctor patient

QUESTION 1. [fees management]


Table 1-
use

Table 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