0% found this document useful (0 votes)
475 views

DDA Assingment

This document outlines the requirements for an assignment on database development and applications. Students will work in groups of 4-5 members to complete the assignment based on a business system analyzed in a previous course. The assignment involves developing business rules, an ERD diagram, database design language, creating database tables in Oracle with SQL, populating the database with sample data, and writing multi-table queries. Students must adhere to formatting guidelines and submission deadlines. Group work will be evaluated based on each member's contribution.

Uploaded by

LrzFreeze
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
475 views

DDA Assingment

This document outlines the requirements for an assignment on database development and applications. Students will work in groups of 4-5 members to complete the assignment based on a business system analyzed in a previous course. The assignment involves developing business rules, an ERD diagram, database design language, creating database tables in Oracle with SQL, populating the database with sample data, and writing multi-table queries. Students must adhere to formatting guidelines and submission deadlines. Group work will be evaluated based on each member's contribution.

Uploaded by

LrzFreeze
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

Tunku Abdul Rahman University College

Faculty of Computing and Information Technology

Diploma in Information System


[DFT2]
[G5]
[2021]
CHUA YUAN HAO
YAP JIA FENG
LAM YU QUAN
TAN WEN ZHANG

Assignment

AACS3013 Database Development and Applications


Page |2

Introduction
This assignment is a partial fulfilment of requirements leading to Diploma in Science for students taking
the course in AACS3013 Database Development and Applications / AMCS3014 Database
Development and Applications. Students are required to form teams of 4-5 members, based on the
assignment groupings in AACS1304 System Analysis and Design. Every member in a group is expected
to participate and contribute actively in the completion of the assignment.

Students are required to refer to the selected business system done in AACS1304 System Analysis and
Design assignment and fulfil the assignment requirements below. Oracle database is to be used to
develop the database.

Assignment Objectives
The purpose of this assignment is to assess a student’s ability to:
1. Apply the basic concepts or theories learnt in the course.
2. Write business rules for a chosen organization’s environment.
3. Implement the appropriate techniques and methodologies applicable to the database
development life cycle.
4. Critically analyse the requirements for a good database design and design a good database
pertaining to the selected organization’s environment.
5. Develop the designed database using Structured Query Language (SQL) in the Oracle database.
6. Present the complete assignment report in a well organised, clear and interesting manner.

Assessment
The learning outcome assessed are:
CLO2: Produce database solutions according to the requirements and business scenarios. (P4,
PLO3)
CLO3: Demonstrate the ability to solve problem and complete tasks in a given business scenario
using a database management software. (C3, PLO6)

Assignment requirements:
Task 1: Organisation Background (5 marks)
Provide an overview of the organisation background and the information system you have
selected in AACS1304 System Analysis and Design assignment.

Task 2: Develop Business Rules (10 marks)


List down at least 10 potential Business Rules based on the selected business system in
AACS1304 System Analysis and Design assignment.

Task 3: Develop Entity-Relationship Diagram (ERD) (10 marks)


Draw a conceptual Entity-Relationship Diagram (ERD) using the Crow’s Foot symbols for your
whole system based on the above rules.
Page |3

You can create tables in MS Access and use the Database Tools →Relationships to check
that your design is correct.
Your design should have between 5 to 10 entities.

Task 4: Develop Database Design Language (DBDL) (10 marks)


By using Database Design Language (DBDL), describe each of the above entities you have
identified. You should have suitable number of attributes for each of the entities. A sample is
shown below.
Note: Underline all primary keys and use * to indicate foreign keys.

CUSTOMER (CUSTNO, CUSTNAME, CUSTADDRESS, CUSTCONTACT, AGENTNO*)

AGENT (AGENTNO, AGENTNAME, AGENTADDRESS, AGENTCONTACT)

Task 5: Create database tables in Oracle (25 marks)


Write the appropriate SQL statements to create tables based on the entities identified above.
Choose appropriate data types, default values and check constraints. Ensure that you enforce
the Entity Integrity Rule and the Referential Integrity Rule.

Task 6: Create records (10 marks)


Write the appropriate INSERT statements to populate your database. You are advised to insert
sufficient data records for each table that you have created in the Oracle database server.
Transaction tables would have more records than base tables. For example, if there are 20
customers, and each customer makes an average of 3 orders per month, then the orders
transaction table would have [20 x 3 = 60 records] per month. If you maintain the orders for 5
months, you would have 300 orders transaction record.

Furthermore, you should create sample data that has different date/month/year to simulate a
real-world environment.

Task 7: Create Queries (3 x 10 marks = 30 marks)


Each group member should write THREE (3) of multi-table queries to extract useful
meaningful information from the database. Use a script to create your queries. You should use
ACCEPT and PROMPT commands and variable substitution in your script to provide input
flexibility.
For each of the queries, state the purpose of the query and provide the results of the queries.
You should format the output of the queries to be meaningful and presentable.
Page |4

Award of Marks
Marks awarded to a particular group will normally be applied to every member of the same group. This
is assumed that the members of the group have contributed equally towards completion of the
assignment. However, in cases where this is not so, then marks may be awarded to each member based
on the amount of contributory efforts invested by each member. Students in group assignments are
required to conduct group/peer appraisal before indicating the quantum of individual contribution which
must be indicated and agreed upon by all members as indicated below. No marks will be awarded to
absentees.
Student Names Student ID Contribution Signature Marks
(%)

Total 100%

Calculation of marks will be as follows:


Marks for individual = Group size X Group marks awarded X % of contribution
Based on the formula for calculation of marks, the maximum mark that is obtainable by an individual
is capped at 90%. Where the contribution by an individual is acutely low (eg. less than 10%), then the
tutor may initiate an enquiry and this may lead to the students resubmitting the assignment.

Report Presentation Requirements


Students are required to adhere to the following sequence of presentation requirements

Report Content
The following is a list of the minimum requirements that must be included in the assignment report:
• Front cover sheet
• Assignment Assessment Form
• Acknowledgement
• Content page
• References to be listed using Harvard referencing system including any web sites accessed.

(Refer to sample report)


Page |5

Presentation of Assignment
In submitting of assignment the following guidelines must be strictly adhered to.

Presentation Requirements
Students must strictly comply with the following requirements. Non- or partial compliance would lead
to precious marks being deducted.
Line Spacing. Typed material should be single-line spaced.
• Font Size. A body text of font size 12 is required while for headings and subheadings a larger
font size must be used.
• Type Style. Use Times New Romans for body text. Main headings and sub-headings should be
clearly explained using suitable styles (eg. Arial).
• Headers and Footers. Appropriate footers and headers should be used to enhance clarity and
presentation.
• Margin. All pages of the assignment should have a margin of an adequate width of 3 cm (1 inch)
all around.
• Page numbering. Ensure that all pages (except cover page) are numbered.
• Paper Size. Use A4 paper.
• Binding. All pages should be stapled or properly bind.
• Assignment Covers. Use a transparency sheet as the front cover and a manilla card or transparency
sheet as the back cover of the report.

Well-Structured
It is recommended that your assignment be well structured and logically arranged. Your report will
be evaluated on the basis of content and style. Students should make every attempt to use the headings
and sub-headings features wherever possible and appropriate.

Assignment submission deadline:


Week 11
Presentation: Week 11 - 13

Return date: Week 13/14


Page |6

Submission of Assignments

Late Submissions
All assignments should be submitted by the stated due date unless as revised and approved by the
lecturer. Marks will be deducted for late submissions of the written paper unless valid reasons or
application for extension and approval is given before the due date of the assignment. Therefore the
responsibility is upon you to ensure that an assignment is substantially prepared prior to the submission
date.
Penalty for late submission of coursework after submission deadline / extended submission deadline:
Late submission within 1 – 3 days: total marks to be deducted is 10 marks.
Late submission within 4 – 7 days: total marks to be deducted is 20 marks.
Late submission after 7 days: reject coursework and zero mark shall be awarded.
As a general rule, no extension of time will be granted. The assignments and its due dates are normally
given in advance to students in order that they will be able to organise their study program.

Assignment Policy
All work presented for assessment is expected to be the student’s own and original work. The lecturer
expects of all students, honest and meticulous acknowledgement of all sources of materials used.

Plagiarism
All work submitted must be original and not previously submitted for assessment at this College or
elsewhere. All information from other sources must be duly acknowledged. In particular, you need to
cite sources discovered on the Internet as you would any other publication. Plagiarism is a breach of
the College regulations and may result in a mark of zero being given for the work containing plagiarism.
Plagiarism includes copying from another source without acknowledging that source, whether it is the
work of another student, an author or of your own assignment for another unit. Students found to have
plagiarised other works will record a failure in the subject.
Given the explosion of electronic publications in recent years, students need to be careful that their
assignments do not become an exercise in cutting and pasting existing abstracts or portions of World
Wide Web pages. Rarely will such an approach produce acceptable results.

Collusion
A less well-defined issue is that of group work. As this assignment is considered as a group assignment,
the forming of a group to share ideas and assist in the development of assignments or projects is an
accepted and encouraged practice. However, it is NOT acceptable for members of one group to submit
identical answers to assignments, by simply copying the work done from another group and
cosmetically disguised it with some modifications.
All assignments must be submitted individually as a group and the lecturer is entitled to consider
identical layout, identical mistakes, identical argument and identical presentation to be prima facie
evidence of collusion.

Cheating
There is no excuse for or sympathy given to students who cheat. A student found guilty of cheating in
assignment, eg. Copying from another student’s assignment or from an assignment submitted in a
previous year either in part or in total, or let another student copy his or her assignment, will be dealt
with seriously. In less serious cases, students’ marks might be reduced or required to resubmit another
assignment while in most serious cases, they might fail the coursework, with no chance for any make
good.
Page |7

Timeline to complete each task

Task Timeline to complete each task (week


number)

Task 1: Organisation Background 3-4

Task 2: Develop Business Rules 4-5

Task 3: Develop Entity-Relationship Diagram (ERD) 5-7

Task 4: Develop Database Design Language (DBDL) 6-8

Task 5: Create database tables in Oracle 6-8

Task 6: Create records 6-8

Task 7: Create Queries 7 - 11


Page |8

Database Development and Applications


Assignment Assessment Form

Task Task Weightage Criteria Ratings Marks


No. Descriptions S1 S2 S3 S4 S5
1 Organisation’s 5% • All titles and names of organization • Excellent (5)
background and charts clearly stated
• Good (4)
• Clear description of the organization’s
background • Moderate (2-3)
• Poor (0-1)

2 Develop Business 10% • Include the required and relevant pairs • Excellent (9-10)
rules of business rules
• Good (7-8)
• All business rules must be clearly
defined, precise, and reflect the • Moderate (4-6)
policies and procedures of the
organization’s operational environment • Poor (0-3)

3 Develop ERD 10% • Transform business rules to a relational • Excellent (9-10)


database model correctly
• Good (7-8)
• Correct use of Crow’s Foot notations
• Include all necessary entities, • Moderate (4-6)
attributes, and relationships
• Poor (0-3)

4 Develop DBDL 10% • Correct use of DBDL as required • Excellent (9-10)


• All required entities, attributes and
• Good (7-8)
relationships correctly shown
• Indicate PK and FK clearly • Moderate (4-6)
• Poor (0-3)

5 Database 25% • Correct tables, records and fields • Excellent (20-25)


Design designed according to the ERD • Good (15-19)
developed
• Enforcement of Entity integrity • Moderate (6-14)
rule and Referential integrity rule • Poor (0-5)
• Appropriate data types, default
values and check constraints

6 Records Entry 10% • Provide required number of • Excellent (9-10)


suitable records • Good (7-8)
• Well-designed records for
adequate and logical choices of • Moderate (4-6)
queries to be performed • Poor (0-3)

7 *Queries 30% • Clear and proper identification of • Excellent (25-30)


Design information needs • Good (16-24)
(Individual • Flexible query to cater for variety
marks awarded) of inputs, use of multiple tables • Moderate (9-15)
• Meaningful report handlings • Poor (0-8)
• Data values formatted accordingly

Overall Assignment Marks / Grade:


Page |9

*Task 7 Individual marks

Name
S1. Chua Yuan Hao
S2. Yap Jia Feng
S3. Lam Yu Quan
S4. Tan Wen Zhang

Note:
• Minimum pass grade for this assignment is C
• The students must see the tutor if the overall assignment grade obtained is D

General Comments:

______________________________________________________________________________

______________________________________________________________________________

______________________________________________________________________________

______________________________________________________________________________

______________________________________________________________________________

______________________________________________________________________________

______________________________________________________________________________

______________________________________________________________________________

______________________________________________________________________________

______________________________________________________________________________

Grading Scheme:
GRADE A+ A A- B+ B B- C+ C D
MARKS 90-100 80-89 75-79 70-74 65-69 60-64 55-59 50-54 0-49
(100%)
P a g e | 10

Acknowledgement
P a g e | 11

Table Of Content
Chapter 1: The Organisation Background (Chua Yuan Hao) 13
1.1 Background of the system 13
1.2 Organisation hierarchy chart 14
1.3 System structure chart 14

Chapter 2: Business Rules ( Tan Wen Zhang & Yap Jia Feng) 15
2.1 The business rules
Policies
Procedures (calculations, formulas, etc)
Rules and Regulations

Chapter 3: Entity-Relationship Diagram (Lam Yu Quan) 16

Chapter 4: Database Design Language (DBDL) Schema (Chua Yuan Hao) 16

Chapter 5: Creating the Database in ORACLE (Chua Yuan Hao)


5.1 Employee table 17
5.2 Training table 17
5.3 Trainingcourse table 17
5.4 Department table 18
5.5 Job table

Chapter 6: Sample Data (Yap Jia Feng)


6.1 Employee table 19
6.2 Training table 20
6.3 Trainingcourse table 21
6.4 Department table 22
6.5 Job table 23

Chapter 7: SQL Queries


7.1 (Chua Yuan Hao)
7.1.1 Query 1: Employees details 24
7.1.2 Query 2: Salary Details 24
7.1.3 Query 3: Total salary 25

7.2 (Yap Jia Feng) x


7.2.1 Query 1:
7.2.2 Query 2:
7.2.3 Query 3:

7.3 (Lam Yu Quan) x


7.2.1 Query 1:
7.2.2 Query 2:
7.2.3 Query 3:

7.4(Tan Wen Zhang) x


7.2.1 Query 1:
7.2.2 Query 2:
7.2.3 Query 3:
P a g e | 12

Chapter 8: Personal Reflection


8.1 (Chua Yuan Hao) x
8.2 (Student 2) x
8.3 (Student 3) x
8.4 (Student 4)

Harvard References
P a g e | 13

Organisation Background

As of January 2018, there are 24,243 stores worldwide, with fast


growth in Asia outside Japan. There are 17,409 stores in Japan, 3,165
stores in Taiwan, 2,177 stores in China, 1,138 stores in Thailand, 66
stores in the Philippines, 165 stores in Vietnam, 87 stores in
Indonesia, and 70 stores in Malaysia.
QL Resources Bhd's net profit for the third quarter ended December
31, 2020 increased by 8.84% to 76.33 million ringgit from 70.13 million ringgit in the previous quarter.
Revenue increased by 3.09% from RM1.08 billion to RM1.11 billion. Compared with the same period
last year, QL Resources' net profit increased by 0.27% from RM76.12 million, while revenue was stable
at RM1.11 billion.
The family mart most customers in Malaysia is teenager. The suppliers is Focus Point. Focus Point is
one of the largest suppliers in the family mart. Thousands of Japanese desserts are sold every day for
the whole family mart. Focus Point estimates that by the first quarter of 2021, sales to its largest
corporate customer will reach RM1.7 million per month. With the maximum capacity of Focus’s
existing central kitchen facilities, a second central kitchen is under construction. When operating at full
capacity, Focus Point estimates that the sales of the second central kitchen will reach RM4 million per
month.
The family mart big competitors in Malaysia is 7-Eleven and 99 Speed Mart. 7-Eleven has the biggest
share in terms of the number of stores at 62%, followed by 99 Speed Mart, which is essentially a small
supermarket selling mainly household products including diapers. 99 Speed Mart is popular with
housewives, migrant workers and lower-income consumers.

Information Systems
The HRIS is a data collection and storage system for an organization's personnel. It is a system that
handles everything from hiring to performance management to learning and development. Besides that,
there are many HRIS functions used by Family Mart.
For examples, the first example is payroll. Payroll is a software programme that automates the process
of paying employees.
The second example is time and attendance. Employee time and attendance data is collected using this
function. Workers nowadays frequently check into work using their fingerprints or a card that is linked
with an HRIS system. This gives an effective entry and exit time. Any concerns with time and
attendance are quickly identified.
P a g e | 14

Organisation hierarchy chart

System structure chart


P a g e | 15

Business Rule
1) An employee is allowed to arrive at the company latest for 10 minutes after the start of the
working hour otherwise, will be counted as late attendance.

2) Employees are not allowed to use their handphones during working hours or play social
media apps while working.

3) Employees are not allowed to leak any company secrets.

4) Employees should have training before becoming an official employee.

5) Employees should wear proper uniforms.

6) Every employee should be present by 9am and work 9 hours per day.

7) Treating workers who are actually “part-time employees” as “freelancers” instead

8) Hierarchy of decision making and approving company invoices

9) Formula or scenarios in deciding key Performance Indicators

10) Company policies in taking medical leaves


P a g e | 16

ERD

DBDL
EMPLOYEE
(EMPLOYEE_ID,EMPLOYEE_NAME,BIRTH_DATE,EMAIL,GENDER,PHONE_NUMBER)
TRAINING
(TRAINING_ID, EMPLOYEE_ID*,TRAINING_COMPANY)
TRAININGCOURSE
(TRAINING_COURSE,TRAINING_ID*,START_DATE,END_DATE)
DEPARTMENT
(DEPARTMENT_ID,DEPERTMENT_NAME,EMPLOYEE_ID*, TRAINING_COIURSE*)
JOB
(JOB_ID, JOB_TITLE, DEPERTMENT_ID*,EMPLOYEE_ID*, SALARY)
P a g e | 17

Table 1 – Employee
create table employee (
emp_id number(7) not null,
emp_name varchar(25) not null,
birth_date date,
email varchar(35),
phone varchar(14),
gender char(1),
primary key(emp_id),
constraint chk_email check (REGEXP_LIKE(email,'^[a-zA-
Z]\w+@(\S+)$')),
constraint chk_gender check (UPPER(gender) in ('M','F'))
);

Table 2 - Training
create table training (
train_id number(7) not null,
emp_id number(7),
train_comp varchar(25) not null,
primary key(train_id),
foreign key(emp_id) references employee(emp_id)
);

Table 3 – Training course


create table trainingcourse (
train_course varchar(15) not null,
train_id number(7),
start_date date,
end_date date,
primary key(train_course),
foreign key(train_id) references training(train_id)
);
P a g e | 18

Table 4 – Department
create table department (
depart_id number(7),
depart_name varchar(15),
emp_id number(7),
train_course varchar(15),
primary key(depart_id),
foreign key(emp_id) references employee(emp_id),
foreign key(train_course) references trainingcourse(train_course)
);

Table 5 -Job
create table job (
job_id number(7),
job_title varchar(10),
depart_id number(7),
emp_id number(7),
salary number(7),
primary key(job_id),
foreign key(depart_id) references department(depart_id),
foreign key(emp_id) references employee(emp_id)
);
P a g e | 19

Data for Table 1 – Employee


insert into employee values(1001,'YAP JIA FENG','14-FEB-
2002','jiafeng@tarc.edu.my','018-3834214','M');

insert into employee values(1002,'Tong Jun Jie','03-SEP-


1999','junjie@tarc.edu.my','012-1225411','M');

insert into employee values(1003,'Teo Mei Ling','13-MAR-


2003','meiling@tarc.edu.my','013-1456892','F');

insert into employee values(1004,'Ting Soon Hock','06-JUL-


1998','soonhock@tarc.edu.my','011-5789035','M');

insert into employee values(1005,'Sia Shun Fu','20-JUL-


1999','shunfu@tarc.edu.my','018-3326885','M');
P a g e | 20

Data for Table 2 – Training


insert into training values(2001,'1001','HUAWEI');

insert into training values(2002,'1002','NOKIE');

insert into training values(2003,'1003','SAMSUNG');

insert into training values(2004,'1004','IPHONE');

insert into training values(2005,'1005','TAOBAO');


P a g e | 21

Data for Table 3 – Training Course


insert into trainingcourse values('IT',2001,'23-JAN-2020','24-MAR-
2020');

insert into trainingcourse values('ACC',2002,'1-JAN-2012','20-FEB-


2013');

insert into trainingcourse values('BUS',2003,'28-MAY-2020','5-FEB-


2022');

insert into trainingcourse values('MAR',2004,'20-DEC-2008','29-MAR-


2010');

insert into trainingcourse values('ENG',2005,'6-JUN-2012','14-SEP-


2014');
P a g e | 22

Data for Table 4 -Department


insert into department values(3001,'TECHNOLOGY',1001,'IT');

insert into department values(3002,'ACCOUNTING',1002,'ACC');

insert into department values(3003,'BUSINESS',1003,'BUS');

insert into department values(3004,'MARKETING',1004,'MAR');

insert into department values(3005,'ENGINEER',1005,'ENG');


P a g e | 23

Data for Table 5 – Job


insert into job values(4001,'PROGRAMMER',3001,1001,4000.00);

insert into job values(4002,'ACCOUNTER',3002,1002,2000.00);

insert into job values(4003,'EMPLOYEE',3003,1003,2800.00);

insert into job values(4004,'MANAGER',3004,1004,2500.00);

insert into job values(4005,'EMPLOYEE',3005,1005,1800.00);


P a g e | 24

Chua Yuan Hao


Query 1
Purpose of this query is to find out who’s employee have a job title of manager and is a male.

select e.emp_id,e.emp_name,e.gender,j.job_title,j.salary
from employee e,job j
where j.job_title = 'MANAGER' AND e.gender = 'M' AND e.emp_id =
j.emp_id;

Sample output:

Query 2
Purpose of this query is to find out the employee that have more than 2000 of salary and also a female

select e.emp_id,e.emp_name,d.depart_id,j.job_title,j.salary,e.gender
from employee e,department d,job j
where j.salary > 2000 AND e.emp_id = j.emp_id AND d.depart_id =
j.depart_id AND e.gender = 'F';

Sample output:
P a g e | 25

Query 3
Purpose of this query is to find out the total amount of the salary of the employee with the job title of
manager

select sum(SALARY)
from job j,employee e
where j.emp_id = e.emp_id AND j.job_title = 'MANAGER';

Sample output:
P a g e | 26

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy