SlideShare a Scribd company logo
SULIT FP304: DATABASE SYSTEM 
2 
SULIT 
SECTION A: 50 MARKS 
BAHAGIAN A: 50 MARKAH 
INSTRUCTION: 
This section consists of FORTY (40) objective questions. Mark your answers in the OMR form provided. 
ARAHAN : 
Bahagian ini mengandungi EMPAT PULUH (40) soalan objektif. Tandakan jawapan anda di dalam borang OMR yang disediakan.
SULIT FP304: DATABASE SYSTEM 
3 
SULIT 
SECTION B: 50 MARKS 
BAHAGIAN B: 50 MARKAH 
INSTRUCTION: 
This section consists of TWO (2) structured questions. Answer ALL questions. 
ARAHAN: 
Bahagian ini mengandungi DUA (2) soalan berstruktur. Jawab SEMUA soalan. 
QUESTION 1 
(a) List and briefly explain the THREE (3) levels of schema architecture of database system 
Senaraikan dan terangkan secara ringkas TIGA (3) aras dalam rekabentuk skema pangkalan data. 
[6 marks] 
[6 markah] 
(b) Define the terms used in Relational Data model. Takrifkan istilah-istilah yuang digunakan dalam model Hubungan Data. 
i. Tuple / Tuple 
ii. Cardinality / Kardinaliti 
iii. Foreign Key / Kekunci Asing 
[6 marks] 
[6 markah] 
CLO1 
C1 
CLO1 
C1
SULIT FP304: DATABASE SYSTEM 
4 
SULIT 
(c) Table 7: Lecturer 
Jadual 7: Lecturer 
Table 8: Subject 
Jadual 8: Subject 
subjekCode 
subjekName 
CS1024 
Database Management 
CC6533 
Graphic User Interface 
i. Write the relation schema for the Lecturer and Subject table. 
Tulis skema hubungan bagi jadual Pensyarah dan Kursus. 
[2 marks] 
[2 markah] 
ii. Generate the output by using Cartesian Product operator on Lecturer and Subject table. 
Jana output bagi operator Produk Cartesian untuk jadual Pensyarah dan Kursus. 
[6 marks] 
[6 markah] 
staffID 
Name 
Address 
910321086997 
Haris Hamzah 
Petaling Jaya 
790908145550 
Nur Imani 
Johor Bahru 
800807116543 
Azfar Haikal 
Ipoh 
CLO3 
C3 
CLO1 
C2
SULIT FP304: DATABASE SYSTEM 
5 
SULIT 
(d) Table 9: Drink 
Jadual 9: Drink 
Table 10: Company 
Jadual 10: Company 
companyID 
companyName 
21 
Order All 
30 
MyDrinks 
35 
MEME Drinks 
Based on the Table 9 dan 10, generate the output for statement below. 
Berdasarkan Jadual 9 dan 10, hasilkan output bagi pernyataan di bawah. 
i. Drink JOIN Company (Drink. companyID = Company. companyID) 
[2 marks] 
[2 markah] 
ii. Drink LEFT OUTER JOIN Company (Drink. companyID = Company. companyID) 
[3 marks] 
[3 markah] 
ID 
Name 
companyID 
1 
Coca Cola 
21 
2 
Sprite 
Null 
3 
Milo 
30 
CLO3 
C3 
CLO3 
C3
SULIT FP304: DATABASE SYSTEM 
6 
SULIT 
QUESTION 2 
SOALAN 2 
a) Explain each of the following problem arise from simultaneous access to database below : 
Terangkan setiap masalah yang timbul berikutan daripada capaian data serentak ke pangkalan data di bawah: 
i. Lost update 
ii. Uncommitted dependency 
iii. Inconsistent retrieval 
[3 marks] 
[3 markah] 
CLO2 
C4
SULIT FP304: DATABASE SYSTEM 
7 
SULIT 
b) Draw an Entity Relationship (ER) Diagram based on the following scenario. 
Lukis Rajah Hubungan Entiti berdasarkan senario berikut. 
[9 marks] 
[9 markah] 
Cuplicious Bakery sells various bakery products. These products are grouped into several product groups. Key products for product is pro_code, and the key for product group is pro_group_code. Based on customer invoice, the additional attributes for product are pro_desc, pro_flavour and unit_price. The customer sends orders for a product. The key for order is order_code and for other attributes are order_date and quantity. The customer can place any numbers of orders or may not place any order at all. Each order is made by only one customer. The key for customer is cust_code. Other attributes are cust_name and cust_address. Each customer order consist of at least one product. 
Cuplicious Bakery menjual beberapa jenis produk bakeri Produk – produk ini dibahagikan kepada beberapa kumpulan. Kekunci bagi produk adalah pro_code dan kekunci bagi product_group adalah pro_group_code. Berdasarkan kepada invois pelanggan, atribut tambahan bagi produk adalah pro_desc, Pro_flavour dan unit_price. Pelangggan menghantar tempahan bagi produk. Kekunci bagi langganan adalah order_code. Atribut – atribut lain adalah order_date dan quantity. Pelanggan boleh membuat tempahan atau tidak membuat tempahan. Setiap tempahan hanya boleh dibuat oleh seorang pelanggan. Kekunci bagi pelanggan adalah cust_code. Atribut – atribut lain adalah cust_name, cust_address. Setiap tempahan pelanggan mempunyai sekurang – kurangnya satu produk. 
CLO1 
C3
SULIT FP304: DATABASE SYSTEM 
8 
SULIT 
c) 
STUDENT (sid, sname, sphone, fee, sstate, advisor, courseID) 
COURSE (courseID, courseName, deptID) 
DEPARTMENT (deptID, deptName) 
By using SQL statement; 
Dengan menggunakan penyataan SQL; 
i. Create table STUDENT according to the relation schema. Specify the data type for each attribute wisely. 
Bina jadual STUDENT berdasarkan kepada skema hubungan. Nyatakan jenis data bagi setiap atribut. 
[4 marks] 
[4 markah] 
ii. List all the students from Terengganu. 
Senaraikan semua pelajar dari Terengganu. 
[3 marks] 
[3 markah] 
iii. Display courseID and courseName offered by JTMK. 
Paparkan courseID dan courseName yang ditawarkan oleh JTMK. 
[3 marks] 
[3 markah] 
iv. Count the number of student whose advisor is Haryani. 
Kira bilangan pelajar di bawah seliaan Haryani. 
[3 marks] 
[3 markah] 
SOALAN TAMAT 
CLO3 
C3 
CLO3 
C3 
CLO3 
C3 
CLO3 
C3

More Related Content

What's hot

joins in database
 joins in database joins in database
joins in database
Sultan Arshad
 
introdution to SQL and SQL functions
introdution to SQL and SQL functionsintrodution to SQL and SQL functions
introdution to SQL and SQL functions
farwa waqar
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
sunanditaAnand
 
database Normalization
database Normalizationdatabase Normalization
database Normalization
Harsiddhi Thakkar
 
The Relational Model
The Relational ModelThe Relational Model
The Relational Model
Bhandari Nawaraj
 
PL/SQL TRIGGERS
PL/SQL TRIGGERSPL/SQL TRIGGERS
PL/SQL TRIGGERS
Lakshman Basnet
 
Java Linked List Tutorial | Edureka
Java Linked List Tutorial |  EdurekaJava Linked List Tutorial |  Edureka
Java Linked List Tutorial | Edureka
Edureka!
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
Sachidananda M H
 
Using the set operators
Using the set operatorsUsing the set operators
Using the set operators
Syed Zaid Irshad
 
DBMS Integrity rule
DBMS Integrity ruleDBMS Integrity rule
DBMS Integrity rule
GirdharRatne
 
Data Flow Diagram or DFD
Data Flow Diagram  or DFDData Flow Diagram  or DFD
Data Flow Diagram or DFD
Mubassira Mahmuda Supty
 
Sql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.pptSql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.ppt
DrRShaliniVISTAS
 
Sql commands
Sql commandsSql commands
Sql commands
Prof. Dr. K. Adisesha
 
Array Introduction One-dimensional array Multidimensional array
Array Introduction One-dimensional array Multidimensional arrayArray Introduction One-dimensional array Multidimensional array
Array Introduction One-dimensional array Multidimensional array
imtiazalijoono
 
SQL commands
SQL commandsSQL commands
SQL commands
GirdharRatne
 
sql-commands.pdf
sql-commands.pdfsql-commands.pdf
sql-commands.pdf
Prof. Dr. K. Adisesha
 
Materi : Struktur Data (2 Array)
Materi : Struktur Data (2 Array)Materi : Struktur Data (2 Array)
Materi : Struktur Data (2 Array)
eka pandu cynthia
 
Sql views
Sql viewsSql views
Sql views
arshid045
 

What's hot (20)

Sql query [select, sub] 4
Sql query [select, sub] 4Sql query [select, sub] 4
Sql query [select, sub] 4
 
joins in database
 joins in database joins in database
joins in database
 
introdution to SQL and SQL functions
introdution to SQL and SQL functionsintrodution to SQL and SQL functions
introdution to SQL and SQL functions
 
DATABASE CONSTRAINTS
DATABASE CONSTRAINTSDATABASE CONSTRAINTS
DATABASE CONSTRAINTS
 
database Normalization
database Normalizationdatabase Normalization
database Normalization
 
The Relational Model
The Relational ModelThe Relational Model
The Relational Model
 
PL/SQL TRIGGERS
PL/SQL TRIGGERSPL/SQL TRIGGERS
PL/SQL TRIGGERS
 
Java Linked List Tutorial | Edureka
Java Linked List Tutorial |  EdurekaJava Linked List Tutorial |  Edureka
Java Linked List Tutorial | Edureka
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
 
Ref cursor
Ref cursorRef cursor
Ref cursor
 
Using the set operators
Using the set operatorsUsing the set operators
Using the set operators
 
DBMS Integrity rule
DBMS Integrity ruleDBMS Integrity rule
DBMS Integrity rule
 
Data Flow Diagram or DFD
Data Flow Diagram  or DFDData Flow Diagram  or DFD
Data Flow Diagram or DFD
 
Sql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.pptSql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.ppt
 
Sql commands
Sql commandsSql commands
Sql commands
 
Array Introduction One-dimensional array Multidimensional array
Array Introduction One-dimensional array Multidimensional arrayArray Introduction One-dimensional array Multidimensional array
Array Introduction One-dimensional array Multidimensional array
 
SQL commands
SQL commandsSQL commands
SQL commands
 
sql-commands.pdf
sql-commands.pdfsql-commands.pdf
sql-commands.pdf
 
Materi : Struktur Data (2 Array)
Materi : Struktur Data (2 Array)Materi : Struktur Data (2 Array)
Materi : Struktur Data (2 Array)
 
Sql views
Sql viewsSql views
Sql views
 

Similar to FP304 DATABASE SYSTEM FINAL PAPER

Advanced plsql mock_assessment
Advanced plsql mock_assessmentAdvanced plsql mock_assessment
Advanced plsql mock_assessment
Saurabh K. Gupta
 
CIS 2303 LO3 Process Modeling
CIS 2303 LO3 Process ModelingCIS 2303 LO3 Process Modeling
CIS 2303 LO3 Process ModelingAhmad Ammari
 
75629 Topic prevention measures for vulneranbilitiesNumber of.docx
75629 Topic prevention measures for vulneranbilitiesNumber of.docx75629 Topic prevention measures for vulneranbilitiesNumber of.docx
75629 Topic prevention measures for vulneranbilitiesNumber of.docx
sleeperharwell
 
The Cube - Class XII Project
The Cube - Class XII ProjectThe Cube - Class XII Project
The Cube - Class XII Project
Neil Mathew
 
Bis 345-week-4-i lab-new
Bis 345-week-4-i lab-newBis 345-week-4-i lab-new
Bis 345-week-4-i lab-new
assignmentcloud85
 
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docxCharles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
christinemaritza
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
Lori Moore
 
Queue Management System
Queue Management SystemQueue Management System
Queue Management System
Rahul Barot
 
Teknik-Tekniknya
Teknik-TekniknyaTeknik-Tekniknya
Teknik-Tekniknya
Fizaril Amzari Omar
 
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docxAssignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
sherni1
 
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-designStrayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
kxipvscsk02
 
CIS 336 STUDY Introduction Education--cis336study.com
CIS 336 STUDY Introduction Education--cis336study.comCIS 336 STUDY Introduction Education--cis336study.com
CIS 336 STUDY Introduction Education--cis336study.com
claric262
 
Db2
Db2Db2
Db2
yboren
 
Structured Query Language for Data Management 2 Sructu.docx
Structured Query Language for Data Management      2 Sructu.docxStructured Query Language for Data Management      2 Sructu.docx
Structured Query Language for Data Management 2 Sructu.docx
johniemcm5zt
 
AimTo give you practical experience in database modelling, no.docx
AimTo give you practical experience in database modelling, no.docxAimTo give you practical experience in database modelling, no.docx
AimTo give you practical experience in database modelling, no.docx
simonlbentley59018
 
Question 1Using Powerpoint, Word, Visio or any other graphical e.docx
Question 1Using Powerpoint, Word, Visio or any other graphical e.docxQuestion 1Using Powerpoint, Word, Visio or any other graphical e.docx
Question 1Using Powerpoint, Word, Visio or any other graphical e.docx
IRESH3
 
Bca spring driveassignments
Bca spring driveassignmentsBca spring driveassignments
Bca spring driveassignments
solved_assignments
 

Similar to FP304 DATABASE SYSTEM FINAL PAPER (20)

Sql xp 03
Sql xp 03Sql xp 03
Sql xp 03
 
Advanced plsql mock_assessment
Advanced plsql mock_assessmentAdvanced plsql mock_assessment
Advanced plsql mock_assessment
 
CIS 2303 LO3 Process Modeling
CIS 2303 LO3 Process ModelingCIS 2303 LO3 Process Modeling
CIS 2303 LO3 Process Modeling
 
75629 Topic prevention measures for vulneranbilitiesNumber of.docx
75629 Topic prevention measures for vulneranbilitiesNumber of.docx75629 Topic prevention measures for vulneranbilitiesNumber of.docx
75629 Topic prevention measures for vulneranbilitiesNumber of.docx
 
The Cube - Class XII Project
The Cube - Class XII ProjectThe Cube - Class XII Project
The Cube - Class XII Project
 
Bis 345-week-4-i lab-new
Bis 345-week-4-i lab-newBis 345-week-4-i lab-new
Bis 345-week-4-i lab-new
 
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docxCharles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
 
Queue Management System
Queue Management SystemQueue Management System
Queue Management System
 
Teknik-Tekniknya
Teknik-TekniknyaTeknik-Tekniknya
Teknik-Tekniknya
 
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docxAssignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
 
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-designStrayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
 
Sql xp 01
Sql xp 01Sql xp 01
Sql xp 01
 
Dbms record
Dbms recordDbms record
Dbms record
 
CIS 336 STUDY Introduction Education--cis336study.com
CIS 336 STUDY Introduction Education--cis336study.comCIS 336 STUDY Introduction Education--cis336study.com
CIS 336 STUDY Introduction Education--cis336study.com
 
Db2
Db2Db2
Db2
 
Structured Query Language for Data Management 2 Sructu.docx
Structured Query Language for Data Management      2 Sructu.docxStructured Query Language for Data Management      2 Sructu.docx
Structured Query Language for Data Management 2 Sructu.docx
 
AimTo give you practical experience in database modelling, no.docx
AimTo give you practical experience in database modelling, no.docxAimTo give you practical experience in database modelling, no.docx
AimTo give you practical experience in database modelling, no.docx
 
Question 1Using Powerpoint, Word, Visio or any other graphical e.docx
Question 1Using Powerpoint, Word, Visio or any other graphical e.docxQuestion 1Using Powerpoint, Word, Visio or any other graphical e.docx
Question 1Using Powerpoint, Word, Visio or any other graphical e.docx
 
Bca spring driveassignments
Bca spring driveassignmentsBca spring driveassignments
Bca spring driveassignments
 

More from Syahriha Ruslan

OSOS SEM 4 Chapter 2 part 1
OSOS SEM 4 Chapter 2 part 1OSOS SEM 4 Chapter 2 part 1
OSOS SEM 4 Chapter 2 part 1
Syahriha Ruslan
 
OSOS SEM 4 Chapter 1
OSOS SEM 4 Chapter 1OSOS SEM 4 Chapter 1
OSOS SEM 4 Chapter 1
Syahriha Ruslan
 
FP305 data structure PAPER FINAL SEM 3
FP305 data structure PAPER FINAL SEM 3FP305 data structure PAPER FINAL SEM 3
FP305 data structure PAPER FINAL SEM 3
Syahriha Ruslan
 
FP305 data structure
FP305     data structure FP305     data structure
FP305 data structure
Syahriha Ruslan
 
FP305 data structure june 2012
FP305   data structure june 2012FP305   data structure june 2012
FP305 data structure june 2012
Syahriha Ruslan
 
FP 303 COMPUTER NETWORK PAPER FINAL Q
FP 303 COMPUTER NETWORK PAPER FINAL QFP 303 COMPUTER NETWORK PAPER FINAL Q
FP 303 COMPUTER NETWORK PAPER FINAL Q
Syahriha Ruslan
 
FP 303 COMPUTER NETWORK PAPER FINAL
FP 303 COMPUTER NETWORK PAPER FINALFP 303 COMPUTER NETWORK PAPER FINAL
FP 303 COMPUTER NETWORK PAPER FINAL
Syahriha Ruslan
 
FP 303 COMPUTER NETWORK FINAL PAPER JUNE 2012
FP 303 COMPUTER NETWORK FINAL PAPER JUNE 2012FP 303 COMPUTER NETWORK FINAL PAPER JUNE 2012
FP 303 COMPUTER NETWORK FINAL PAPER JUNE 2012
Syahriha Ruslan
 
FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013
Syahriha Ruslan
 
FP 301 OOP FINAL PAPER
FP 301 OOP FINAL PAPER FP 301 OOP FINAL PAPER
FP 301 OOP FINAL PAPER
Syahriha Ruslan
 

More from Syahriha Ruslan (10)

OSOS SEM 4 Chapter 2 part 1
OSOS SEM 4 Chapter 2 part 1OSOS SEM 4 Chapter 2 part 1
OSOS SEM 4 Chapter 2 part 1
 
OSOS SEM 4 Chapter 1
OSOS SEM 4 Chapter 1OSOS SEM 4 Chapter 1
OSOS SEM 4 Chapter 1
 
FP305 data structure PAPER FINAL SEM 3
FP305 data structure PAPER FINAL SEM 3FP305 data structure PAPER FINAL SEM 3
FP305 data structure PAPER FINAL SEM 3
 
FP305 data structure
FP305     data structure FP305     data structure
FP305 data structure
 
FP305 data structure june 2012
FP305   data structure june 2012FP305   data structure june 2012
FP305 data structure june 2012
 
FP 303 COMPUTER NETWORK PAPER FINAL Q
FP 303 COMPUTER NETWORK PAPER FINAL QFP 303 COMPUTER NETWORK PAPER FINAL Q
FP 303 COMPUTER NETWORK PAPER FINAL Q
 
FP 303 COMPUTER NETWORK PAPER FINAL
FP 303 COMPUTER NETWORK PAPER FINALFP 303 COMPUTER NETWORK PAPER FINAL
FP 303 COMPUTER NETWORK PAPER FINAL
 
FP 303 COMPUTER NETWORK FINAL PAPER JUNE 2012
FP 303 COMPUTER NETWORK FINAL PAPER JUNE 2012FP 303 COMPUTER NETWORK FINAL PAPER JUNE 2012
FP 303 COMPUTER NETWORK FINAL PAPER JUNE 2012
 
FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013FP 301 OOP FINAL PAPER JUNE 2013
FP 301 OOP FINAL PAPER JUNE 2013
 
FP 301 OOP FINAL PAPER
FP 301 OOP FINAL PAPER FP 301 OOP FINAL PAPER
FP 301 OOP FINAL PAPER
 

Recently uploaded

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

FP304 DATABASE SYSTEM FINAL PAPER

  • 1. SULIT FP304: DATABASE SYSTEM 2 SULIT SECTION A: 50 MARKS BAHAGIAN A: 50 MARKAH INSTRUCTION: This section consists of FORTY (40) objective questions. Mark your answers in the OMR form provided. ARAHAN : Bahagian ini mengandungi EMPAT PULUH (40) soalan objektif. Tandakan jawapan anda di dalam borang OMR yang disediakan.
  • 2. SULIT FP304: DATABASE SYSTEM 3 SULIT SECTION B: 50 MARKS BAHAGIAN B: 50 MARKAH INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan berstruktur. Jawab SEMUA soalan. QUESTION 1 (a) List and briefly explain the THREE (3) levels of schema architecture of database system Senaraikan dan terangkan secara ringkas TIGA (3) aras dalam rekabentuk skema pangkalan data. [6 marks] [6 markah] (b) Define the terms used in Relational Data model. Takrifkan istilah-istilah yuang digunakan dalam model Hubungan Data. i. Tuple / Tuple ii. Cardinality / Kardinaliti iii. Foreign Key / Kekunci Asing [6 marks] [6 markah] CLO1 C1 CLO1 C1
  • 3. SULIT FP304: DATABASE SYSTEM 4 SULIT (c) Table 7: Lecturer Jadual 7: Lecturer Table 8: Subject Jadual 8: Subject subjekCode subjekName CS1024 Database Management CC6533 Graphic User Interface i. Write the relation schema for the Lecturer and Subject table. Tulis skema hubungan bagi jadual Pensyarah dan Kursus. [2 marks] [2 markah] ii. Generate the output by using Cartesian Product operator on Lecturer and Subject table. Jana output bagi operator Produk Cartesian untuk jadual Pensyarah dan Kursus. [6 marks] [6 markah] staffID Name Address 910321086997 Haris Hamzah Petaling Jaya 790908145550 Nur Imani Johor Bahru 800807116543 Azfar Haikal Ipoh CLO3 C3 CLO1 C2
  • 4. SULIT FP304: DATABASE SYSTEM 5 SULIT (d) Table 9: Drink Jadual 9: Drink Table 10: Company Jadual 10: Company companyID companyName 21 Order All 30 MyDrinks 35 MEME Drinks Based on the Table 9 dan 10, generate the output for statement below. Berdasarkan Jadual 9 dan 10, hasilkan output bagi pernyataan di bawah. i. Drink JOIN Company (Drink. companyID = Company. companyID) [2 marks] [2 markah] ii. Drink LEFT OUTER JOIN Company (Drink. companyID = Company. companyID) [3 marks] [3 markah] ID Name companyID 1 Coca Cola 21 2 Sprite Null 3 Milo 30 CLO3 C3 CLO3 C3
  • 5. SULIT FP304: DATABASE SYSTEM 6 SULIT QUESTION 2 SOALAN 2 a) Explain each of the following problem arise from simultaneous access to database below : Terangkan setiap masalah yang timbul berikutan daripada capaian data serentak ke pangkalan data di bawah: i. Lost update ii. Uncommitted dependency iii. Inconsistent retrieval [3 marks] [3 markah] CLO2 C4
  • 6. SULIT FP304: DATABASE SYSTEM 7 SULIT b) Draw an Entity Relationship (ER) Diagram based on the following scenario. Lukis Rajah Hubungan Entiti berdasarkan senario berikut. [9 marks] [9 markah] Cuplicious Bakery sells various bakery products. These products are grouped into several product groups. Key products for product is pro_code, and the key for product group is pro_group_code. Based on customer invoice, the additional attributes for product are pro_desc, pro_flavour and unit_price. The customer sends orders for a product. The key for order is order_code and for other attributes are order_date and quantity. The customer can place any numbers of orders or may not place any order at all. Each order is made by only one customer. The key for customer is cust_code. Other attributes are cust_name and cust_address. Each customer order consist of at least one product. Cuplicious Bakery menjual beberapa jenis produk bakeri Produk – produk ini dibahagikan kepada beberapa kumpulan. Kekunci bagi produk adalah pro_code dan kekunci bagi product_group adalah pro_group_code. Berdasarkan kepada invois pelanggan, atribut tambahan bagi produk adalah pro_desc, Pro_flavour dan unit_price. Pelangggan menghantar tempahan bagi produk. Kekunci bagi langganan adalah order_code. Atribut – atribut lain adalah order_date dan quantity. Pelanggan boleh membuat tempahan atau tidak membuat tempahan. Setiap tempahan hanya boleh dibuat oleh seorang pelanggan. Kekunci bagi pelanggan adalah cust_code. Atribut – atribut lain adalah cust_name, cust_address. Setiap tempahan pelanggan mempunyai sekurang – kurangnya satu produk. CLO1 C3
  • 7. SULIT FP304: DATABASE SYSTEM 8 SULIT c) STUDENT (sid, sname, sphone, fee, sstate, advisor, courseID) COURSE (courseID, courseName, deptID) DEPARTMENT (deptID, deptName) By using SQL statement; Dengan menggunakan penyataan SQL; i. Create table STUDENT according to the relation schema. Specify the data type for each attribute wisely. Bina jadual STUDENT berdasarkan kepada skema hubungan. Nyatakan jenis data bagi setiap atribut. [4 marks] [4 markah] ii. List all the students from Terengganu. Senaraikan semua pelajar dari Terengganu. [3 marks] [3 markah] iii. Display courseID and courseName offered by JTMK. Paparkan courseID dan courseName yang ditawarkan oleh JTMK. [3 marks] [3 markah] iv. Count the number of student whose advisor is Haryani. Kira bilangan pelajar di bawah seliaan Haryani. [3 marks] [3 markah] SOALAN TAMAT CLO3 C3 CLO3 C3 CLO3 C3 CLO3 C3