Introduction To Database Assignment Part1 Group 7
Introduction To Database Assignment Part1 Group 7
GROUP ASSIGNMENT
TECHNOLOGY PARK MALAYSIA
CT042-3-1-IDB
INTRODUCTION TO DATABASE
GROUP 7
HAND IN DATE:
WEIGHTAGE: 50%
INSTRUCTIONS TO CANDIDATES:
1 Submit your assignment at the administrative counter.
2 Students are advised to underpin their answer with the use of references
(Cited using the Harvard Name System of Referencing).
3 Late submissions will be awarded zero (0) unless Extenuating Circumstances
(EC) are upheld.
4 Cases of plagiarism will be penalized.
5 The assignment should be bound in an appropriate style (comb bound or
stapled).
6 Where the assignment should be submitted in both hardcopy and softcopy, the
softcopy of the
written assignment and source code (where appropriate) should be on a CD in
an envelope
/ CD cover and attached to the hardcopy.
7 You must obtain 50% overall to pass this module.
-Data isolation
Data isolation determines if the changes by an operation are visible to other users or
systems because the data is stored in different files. This will make it difficult for
users to combine all the information they need together.
-Poor security
Compared to database systems, file-based systems are less secure. When the file is
stored in shared device, the data can be easily stolen or illegally accessed by peers,
which can lead to financial loss.
-Data redundancy
When using filed-based system, it can cause data redundancy, data redundancy is a
situation that happens in database when a filed has to update in multiple files. It is
unfavorable for some shops such as bookstores because details of the book stored in
different files may cause waste storage space the same data is stored in several files.
-Concurrency access
In a filed-based system, when opened a file, that file which has been opened will be
locked. That means other users are not able to access the file at the same time.
Advantages of database and DBMS
-Security
The DBMS has built-in security features such as encryption, backup, and recovery to
protect users’ data from loss or theft. For example, only authorized users can be able
to access the data. In case of any data loss, DBMS also protects the data by creating
copies of the files.
-Data integration
DBMS access to well managed the information. It enables us data handling faster and
more efficiently, thus improving the integrity and reliability of the information.
DBMS contains the feature to prevent the input of duplicate information in database.
It is to prevent errors and data inconsistencies from occurring and leading to
confusion at work. It is useful for bookstores. For example, if two same books in
different price rows, the duplicate data will be deleted.
DBMS with better shareability. This helps to improve the efficiency of the work. For
example, within a company, the DBMS can share information of clients more quickly
to different groups.
-More flexible
Compared with the filed-based system, DBMS are more flexible. The size of database
can become bigger or smaller when the storage staff required are more or lesser.
Without affecting data consistency, the DBMS can also add new tables or delete the
old ones.
Function of DBMS
This is the man function of the DBMS. With this function, we are able to create a
database to upload our data and manage it. In addition, the storage function of DBMS
also provides performance tuning, it makes users easier when they need to access the
data.
To protect users from data theft or inadvertent deletion, DBMS has backup and
recovery management to protect the information. If users make a backup every time
they upload information, they don’t have to worry about losing their data because they
can restore it at any time and keep it safe.
-Data control
This is a feature that prevents data from being tampered with or deleted. For example,
when uploading information or files, the administrator can choose to grant read-only
access to readers. When the reader loses the right to change the file at will, the file is
in effect secured.
The data transformation function provided by DBMS too. It helps programmers settle
and optimize the logic of input. DBMS will store the data in the determined data
structure. This feature more appropriately translates and presents data to different
groups of customers.
2. Members can place multiple orders meanwhile each order can only be placed by
one member. The relationship is one-to-many relationship.
3. Members can rate multiple books meanwhile each rate can only be given by one
member. The relationship was represented as one-to-many relationship. “Rate” is
optional to “Member”.
4. Members can review multiple books meanwhile each review can only be given by
one member. The relationship was represented as one-to-many relationship.
“Review” is optional to “Member”.
5. Members can have multiple shopping carts meanwhile each shopping cart can
only be owned by one member. The relationship was represented as one-to-many.
6. Book can be rated by multiple members, but each rate can only rate by one
member. The relationship was many-to-one.
7. Book can be review by multiple members, but each review can only review by
one member. The relationship was many-to-one.
8. Orders can be placed by multiple members; hence each order can only be placed
by one member. The relationship was many-to-one relationship.
9. Order can include multiple books; hence book can be included in multiple orders.
The relationship was many-to-many.
10. Shopping carts can be owned by multiple members while each shopping cart can
only be owned by one member. This relationship can represent as many-to-one
relationship.
11. Shopping cart only can have one order as an order only can have one shopping
cart. This relationship can represent as one-to-one relationship.
UNF
Sales Order
E-Bookstore
Bukit Jalil
Sri Petaling
1NF
Mem Mem Mem Order Order Boo Book Quant Unit
ID name add ID date k name ity price
ID
M01 Yee Ming Sri O01 02/01/2 B01 Star 1 40
Jun Petaling 023 Wars
Full dependencies:
Partial dependencies:
Transitive dependencies:
2NF
Order ID Book ID Quantity
3NF