The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by zfakihzainon82, 2022-10-09 16:42:24

Problem Base Task 1

PROBLEM BASED TASK 1

Topic 2 NAMA: NO PEND:

SIJIL KOLEJ KOMUNITI PROBLEM BASED TASK
PROGRAM
TOPIC 3 1

Instructions: SIJIL SISTEM KOMPUTER & RANGKAIAN
Arahan STM10163 :- DATABASE FUNDAMENTALS
2.0 Database Design Theory

● You need to Read and understand the case study below and answer the following questions.
Anda perlu membaca dan memahami kajian kes di bawah dan jawab soalan-soalan berikut.

CASE STUDY :

Dr Harlofa finds his patients’ records in his clinic are written on cards thus takes so much time to track their
records. He wants a database system for his clinic to keep his patients information such as name, identity card
number, address, gender, status dan telephone number. Besides that, he wants to store the clinical visits’ records
such as visiting number, date, time, illness and treatment given. Visiting number should be unique for each clinical
visit.

Information about medicines that are stocked in the clinic should be kept in the database as well. The
information are as following; medicine code number, medicines name, type of medicine, price and quantity. Along
with these informations, Dr Harlofa intends to keep the details of his nurses who are assisting him in his clinic. The
details are the name, identity card number, address, telephone number and also status. Currently there are six
nurses working in Dr Harlofa’s clinic.

Topic 2 NAMA: NO PEND:

KAJIAN KES :

● Based on the case study above :-
Berdasarkan kajian kes di atas:-

i) Identify the Entities clearly
Kenalpasti entiti-entiti dengan tepat

ii) Identify the attributes clearly for each entity

Dr Harlofa mendapati rekod pesakit di kliniknya yang ditulis di atas kad semakin banyak dan semakin lambat untuk
dikesan. Beliau berpendapat sistem pangkalan data adalah lebih sesuai digunakan di klinik beliau. Beliau perlu
menyimpan data pesakit seperti nama, nombor kad pengenalan, alamat, jantina, status dan nombor telefon. Selain
daripada itu, beliau turut ingin menyimpan data rawatan seperti nombor rawatan, tarikh, masa, jenis penyakit, jenis
rawatan dan kod ubat. Nombor rawatan yang unik digunakan untuk mengenalpasti setiap rawatan yang diberikan
kepada pesakit.

Maklumat mengenai ubat-ubat yang terdapat di klinik juga turut disimpan di dalam sistem pangkalan data
klinik ini. Di antara maklumat yang perlu disimpan termasuklah kod ubat, nama ubat, jenis ubat, harga dan kuantiti.
Di samping maklumat-maklumat ini, Dr Harlofa ingin menyimpan maklumat jururawat-jururawatnya yang
membantu beliau menguruskan pesakit. Maklumat yang disimpan ialah nama, nombor kad pengenalan, alamat
dan nombor telefon dan status. Terdapat enam orang jururawat yang sedang bekerja di Klinik Harlofa.

Kenalpasti atribut-atribut bagi setiap entiti dengan tepat
iii) State the data type for each attribute accurately

Nyatakan jenis data bagi setiap atribut dengan betul
iv) Show the relationship for each entity accurately

Tunjukkan hubungan di antara entiti dengan betul
v) Determine a Primary Key for each Entity accurately

Kenalpasti Kunci Utama bagi setiap entiti dengan betul
vi) Determine Foreign Key/Keys accurately

Tentukan Kunci Asing dengan betul
vii) Determine cardinality in the relationship accurately

Tentukan kardinaliti bagi hubungan yang wujud dengan betul
● Task must be submitted in the form of ‘hard copy’.

Tugas ini mesti diserahkan dalam bentuk 'hard copy'.

Topic 2 NAMA: NO PEND:

EXAMPLE :
Contoh :-

i) Entities, Attributes, Data Types and Keys

ENTITY NAME ATTRIBUTE NAME DATA TYPE PRIMARY KEY/
ENTITY A FOREIGN KEY
ENTITY B Attribute X xxx
ii) Relationships Attribute Y xxx Primary Key
Attribute Z xxx
Attribute D xxx Primary Key
Attribute E xxx
Attribute X xxx Foreign Key

ENTITY A ENTITY B ENTITY C ENTITY D
1:M 1:M
ENTITY A
ENTITY B 1:M
ENTITY C 1:1
ENTITY D


Click to View FlipBook Version