71% found this document useful (7 votes)
2K views3 pages

Answers of A/L ICT Competency - 9 DBMS Model Questions

This document contains information about an A/L ICT exam preparatory seminar held on July 27, 2015 at the Zonal Education Office in Kalmunai, Sri Lanka. It includes sample SQL queries and database schemas for a hospital management system and a sports management system. The hospital database schema includes tables for patients, rooms, nurses, doctors, and doctor specializations. The sports database schema includes tables for players and projects with employees assigned to projects. Sample queries demonstrate how to select, insert, update and order data in the doctor table.

Uploaded by

Mohamed Irfan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
71% found this document useful (7 votes)
2K views3 pages

Answers of A/L ICT Competency - 9 DBMS Model Questions

This document contains information about an A/L ICT exam preparatory seminar held on July 27, 2015 at the Zonal Education Office in Kalmunai, Sri Lanka. It includes sample SQL queries and database schemas for a hospital management system and a sports management system. The hospital database schema includes tables for patients, rooms, nurses, doctors, and doctor specializations. The sports database schema includes tables for players and projects with employees assigned to projects. Sample queries demonstrate how to select, insert, update and order data in the doctor table.

Uploaded by

Mohamed Irfan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 3

7/28/2015

A/L ICT EXAM PREPARATORY


SEMINARR-2015
Zonal Education Office - Kalmunai

7/27/2015

A/L ICT 2015 Exam Preparatory Seminar-ZDE Office Kalmunai

learnbyself.com

1. ASIRI itj;jparhiyf;fhd ERD


1

PatientID

RoomID

Patient

Room

Allocate

Treat

Care
1

Nurse

Doctor

DoctorID

Specializa
tion

NurseID

7/28/2015

2. Patient(PatientID, NurseID, DoctorID)


Room (RoomID)
Nurse (NurseID)
Doctor (DoctorID)
Specialization(DoctorID, Area)
Treat(DoctorID, NurseID)

2) a. SELECT Name, Mon_Salary, Annual Bonus


FROM Doctor
b. INSER INTO Doctor SET(Doc_Id=350, Name=Vaas,
Mon_Salary=35,000, Area=Orthopedics,
Supervisor=235, Date_Hied=27/7/15,
patient_charge=300)
OR
INSER INTO Doctor VALUES(Doc_Id=350, Name=Vaas,
Mon_Salary=35,000, Area=Orthopedics,
Supervisor=235, Date_Hied=27/7/15,
patient_charge=300)

7/28/2015

c. SELECT Name, Date_Hird


FROM Doctor
ORDER BY Date_Hird ASC
d. UPDATE Doctor
SET Patien_Charge=500
WHERE Doc_Id=504

a. %d;whk; nghJikg;gLj;jy;
Player
Player_Id

Name

Category

Category
Category

Salary

b. Kjyhk; nghJikg;gLj;jy;
Project
Prj_No

Prj_Name

Employee
Prj_No

Emp_No

Emp_Name

You might also like