MN405 - Data & Information Management: SQL, ER Diagrams & Big Data
VerifiedAdded on 2024/05/29
|15
|1806
|447
Homework Assignment
AI Summary
This assignment solution for MN405 Data and Information Management explores database design and management using MS Access, including creating tables, inserting records, and writing SQL queries. It covers designing tables with attributes, inserting data using datasheet view, and performing various SQL queries to retrieve specific data. The assignment also delves into Entity Relationship (ER) diagrams, relational schema creation, composite attributes, and relationship cardinality between entities like Book, Author, Publisher, and Warehouse. Furthermore, it provides a brief overview of Big Data technologies such as Hadoop and MapReduce, discussing their capabilities and limitations in handling large datasets and parallel data processing. Desklib offers a wealth of similar resources to aid students in mastering these concepts.

MN405- Data and Information
Management
Assignment 1 (T1 2018) - Managing Data in Databases
Management
Assignment 1 (T1 2018) - Managing Data in Databases
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Table of Contents
Part A.....................................................................................................................................................3
1-a) Create Designs of Table with Attributes in MS- ACCESS.............................................................3
1-b) Insert Records into the tables using Datasheet View.................................................................4
1-c) SQL Query 1................................................................................................................................5
1-d) SQL Query 2................................................................................................................................5
1-e) SQL Query 3................................................................................................................................5
1-f) SQL Query 4................................................................................................................................6
1-g) SQL Query 5- Borrower Table.....................................................................................................6
Part B.....................................................................................................................................................7
2-a) Entity Relationship Diagram to Relational Schema.....................................................................7
2-b) Composite Attributes in the ER Diagram....................................................................................7
2-c) Relationship Cardinality..............................................................................................................8
Book- Author.................................................................................................................................8
Book- Publisher..............................................................................................................................9
Book- Warehouse..........................................................................................................................9
3) A brief note on Big Data Technologies.........................................................................................11
Hadoop........................................................................................................................................11
Capabilities and Limitations.........................................................................................................11
Map Reduce.................................................................................................................................12
Capabilities and Limitations.........................................................................................................12
References...........................................................................................................................................14
Part A.....................................................................................................................................................3
1-a) Create Designs of Table with Attributes in MS- ACCESS.............................................................3
1-b) Insert Records into the tables using Datasheet View.................................................................4
1-c) SQL Query 1................................................................................................................................5
1-d) SQL Query 2................................................................................................................................5
1-e) SQL Query 3................................................................................................................................5
1-f) SQL Query 4................................................................................................................................6
1-g) SQL Query 5- Borrower Table.....................................................................................................6
Part B.....................................................................................................................................................7
2-a) Entity Relationship Diagram to Relational Schema.....................................................................7
2-b) Composite Attributes in the ER Diagram....................................................................................7
2-c) Relationship Cardinality..............................................................................................................8
Book- Author.................................................................................................................................8
Book- Publisher..............................................................................................................................9
Book- Warehouse..........................................................................................................................9
3) A brief note on Big Data Technologies.........................................................................................11
Hadoop........................................................................................................................................11
Capabilities and Limitations.........................................................................................................11
Map Reduce.................................................................................................................................12
Capabilities and Limitations.........................................................................................................12
References...........................................................................................................................................14

List of Figures
Figure 1- Borrow Table Design.....................................................................................................................4
Figure 2- Book Table Design........................................................................................................................4
Figure 3- Person Design...............................................................................................................................4
Figure 4- Publisher Design...........................................................................................................................5
Figure 5- Borrow Table Data........................................................................................................................5
Figure 6- Book Table Data............................................................................................................................5
Figure 7- Person Table Data.........................................................................................................................5
Figure 8- Publisher Table Data.....................................................................................................................6
Figure 9- Query 1-c SQL...............................................................................................................................6
Figure 10- Query 1-c Result.........................................................................................................................6
Figure 11- Query 1-d SQL.............................................................................................................................7
Figure 12- Query 1-d Result.........................................................................................................................7
Figure 13- Query 1-e SQL.............................................................................................................................7
Figure 14- Query 1-e Result.........................................................................................................................7
Figure 15- Query 1-f SQL.............................................................................................................................8
Figure 16- Query 1-f Result..........................................................................................................................8
Figure 17- Query 1-g SQL.............................................................................................................................8
Figure 18- Query 1-g Result- Borrower Table..............................................................................................9
Figure 19- Name composite attribute........................................................................................................10
Figure 20- Author composite attribute......................................................................................................10
Figure 21- Relationship between Book and Author...................................................................................11
Figure 22- Relationship between Book and Publisher...............................................................................11
Figure 23- Relationship between Book and Warehouse............................................................................12
Figure 1- Borrow Table Design.....................................................................................................................4
Figure 2- Book Table Design........................................................................................................................4
Figure 3- Person Design...............................................................................................................................4
Figure 4- Publisher Design...........................................................................................................................5
Figure 5- Borrow Table Data........................................................................................................................5
Figure 6- Book Table Data............................................................................................................................5
Figure 7- Person Table Data.........................................................................................................................5
Figure 8- Publisher Table Data.....................................................................................................................6
Figure 9- Query 1-c SQL...............................................................................................................................6
Figure 10- Query 1-c Result.........................................................................................................................6
Figure 11- Query 1-d SQL.............................................................................................................................7
Figure 12- Query 1-d Result.........................................................................................................................7
Figure 13- Query 1-e SQL.............................................................................................................................7
Figure 14- Query 1-e Result.........................................................................................................................7
Figure 15- Query 1-f SQL.............................................................................................................................8
Figure 16- Query 1-f Result..........................................................................................................................8
Figure 17- Query 1-g SQL.............................................................................................................................8
Figure 18- Query 1-g Result- Borrower Table..............................................................................................9
Figure 19- Name composite attribute........................................................................................................10
Figure 20- Author composite attribute......................................................................................................10
Figure 21- Relationship between Book and Author...................................................................................11
Figure 22- Relationship between Book and Publisher...............................................................................11
Figure 23- Relationship between Book and Warehouse............................................................................12
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

Part A
1-a) Create Designs of Table with Attributes in MS- ACCESS
The tables are created in MS-ACCESS by clicking on Create tab and then clicking on Create Table. The
tables can be created in Design View [1].
Figure 1- Borrow Table Design
Figure 2- Book Table Design
Figure 3- Person Design
1-a) Create Designs of Table with Attributes in MS- ACCESS
The tables are created in MS-ACCESS by clicking on Create tab and then clicking on Create Table. The
tables can be created in Design View [1].
Figure 1- Borrow Table Design
Figure 2- Book Table Design
Figure 3- Person Design
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Figure 4- Publisher Design
1-b) Insert Records into the tables using Datasheet View
The data can be inserted into tables in Datasheet view [2].
Figure 5- Borrow Table Data
Figure 6- Book Table Data
Figure 7- Person Table Data
1-b) Insert Records into the tables using Datasheet View
The data can be inserted into tables in Datasheet view [2].
Figure 5- Borrow Table Data
Figure 6- Book Table Data
Figure 7- Person Table Data

Figure 8- Publisher Table Data
1-c) SQL Query 1
Figure 9- Query 1-c SQL
Figure 10- Query 1-c Result
1-d) SQL Query 2
Figure 11- Query 1-d SQL
Figure 12- Query 1-d Result
1-c) SQL Query 1
Figure 9- Query 1-c SQL
Figure 10- Query 1-c Result
1-d) SQL Query 2
Figure 11- Query 1-d SQL
Figure 12- Query 1-d Result
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

1-e) SQL Query 3
Figure 13- Query 1-e SQL
Figure 14- Query 1-e Result
1-f) SQL Query 4
Figure 15- Query 1-f SQL
Figure 16- Query 1-f Result
1-g) SQL Query 5- Borrower Table
Figure 17- Query 1-g SQL
Figure 13- Query 1-e SQL
Figure 14- Query 1-e Result
1-f) SQL Query 4
Figure 15- Query 1-f SQL
Figure 16- Query 1-f Result
1-g) SQL Query 5- Borrower Table
Figure 17- Query 1-g SQL
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Figure 18- Query 1-g Result- Borrower Table
Part B
2-a) Entity Relationship Diagram to Relational Schema
The relations have been modeled from the given Entity Relationship Diagram by checking all the
functional dependencies. We must make sure that all the parts and the transitive dependencies have
been eliminated [3].
Customer (email: short text; name: short text; phone: number; address: long text)
Book (ISBN: number; title: long text; name (author)*: short text; name (publisher)*: short text; year:
date/time; price: number)
Publisher (URL: long text; name: short text; phone: number (int); address: long text)
Author (URL: long text; name: short text; address: long text)
Shopping-basket (basketID: number)
Shopping-list (basketID*: number; number: number; ISBN*: number; email*: short text)
Warehouse (code: number; phone: number (int); address: long text)
Stocks (code*: number; ISBN*: number; number: number)
Note- The asterisk sign in the relational schema represent the foreign keys. The underlined and
bold represent the primary keys.
2-b) Composite Attributes in the ER Diagram
The composite attribute is an attribute which can possibly have multiple components.
The two keys which can be considered as composite attributes in the ER diagram are:
 Name
 Address
Part B
2-a) Entity Relationship Diagram to Relational Schema
The relations have been modeled from the given Entity Relationship Diagram by checking all the
functional dependencies. We must make sure that all the parts and the transitive dependencies have
been eliminated [3].
Customer (email: short text; name: short text; phone: number; address: long text)
Book (ISBN: number; title: long text; name (author)*: short text; name (publisher)*: short text; year:
date/time; price: number)
Publisher (URL: long text; name: short text; phone: number (int); address: long text)
Author (URL: long text; name: short text; address: long text)
Shopping-basket (basketID: number)
Shopping-list (basketID*: number; number: number; ISBN*: number; email*: short text)
Warehouse (code: number; phone: number (int); address: long text)
Stocks (code*: number; ISBN*: number; number: number)
Note- The asterisk sign in the relational schema represent the foreign keys. The underlined and
bold represent the primary keys.
2-b) Composite Attributes in the ER Diagram
The composite attribute is an attribute which can possibly have multiple components.
The two keys which can be considered as composite attributes in the ER diagram are:
 Name
 Address

The attribute name, if wanted to be divided can be in three parts- first name, middle name, and last
name. Therefore, this attribute being non-atomic is a composite attribute.
Figure 19- Name composite attribute
The attribute address, if wanted to be divided can be in parts- street number, street name, suburb,
region, and postcode. Therefore, this attribute being non-atomic is a composite attribute.
Figure 20- Author composite attribute
2-c) Relationship Cardinality
Book- Author
The cardinality of the relationship between Book and Author is M:1.
name. Therefore, this attribute being non-atomic is a composite attribute.
Figure 19- Name composite attribute
The attribute address, if wanted to be divided can be in parts- street number, street name, suburb,
region, and postcode. Therefore, this attribute being non-atomic is a composite attribute.
Figure 20- Author composite attribute
2-c) Relationship Cardinality
Book- Author
The cardinality of the relationship between Book and Author is M:1.
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

Figure 21- Relationship between Book and Author
Business Rule:
One author can write many books. It can also be versed as many books can be written by one
author.
Book- Publisher
The cardinality of the relationship between Book and Publisher is M:1.
Figure 22- Relationship between Book and Publisher
Business Rule:
One publisher can publish many books.
Book- Warehouse
The cardinality of the relationship between Book and Warehouse is M: M.
Business Rule:
One author can write many books. It can also be versed as many books can be written by one
author.
Book- Publisher
The cardinality of the relationship between Book and Publisher is M:1.
Figure 22- Relationship between Book and Publisher
Business Rule:
One publisher can publish many books.
Book- Warehouse
The cardinality of the relationship between Book and Warehouse is M: M.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Figure 23- Relationship between Book and Warehouse
Business Rule:
Many books can be stored in many warehouses.
Business Rule:
Many books can be stored in many warehouses.

3) A brief note on Big Data Technologies
Hadoop
Introduction
This is a framework supporting Big Data technology. It is stated as a framework which can be used by
anyone and is written in JAVA language, compatible with all platforms. It allows large data sets to
undergo distributed processing and storing of the data under the environment that is distributive.
The modules that constitute Hadoop are as follows:
 The Java utility libraries and functions are the first components that together comprise the
Hadoop Common. These facilitate the starting of the Hadoop system due to the way they
are scripted.
 The second component is the YARN which acts as a task scheduler and is responsible for the
dataset management in clusters.
 The third component is Hadoop Distributed Filesystem (HDFS) which is the distributed file
system.
 The fourth component is the Map-Reduce which is used for parallel data processing [4].
Capabilities and Limitations
Hadoop Capabilities
 It has the capability of storing massive data (due to HDFS).
 Due to the undefined schema of HDFS, the data from different scattered sources can be
stored in Hadoop.
 The bulk of data can be ingested with maximum velocity not interrupting the queuing and
data scale.
 Data processing and pattern identification is facilitated.
 Data integrity is maintained.
Hadoop Limitations
 Real-time processing of data is not yet successful.
 Coding for developers can be a tough task.
 Highly complex
 Iterative model is not supported [5].
Hadoop
Introduction
This is a framework supporting Big Data technology. It is stated as a framework which can be used by
anyone and is written in JAVA language, compatible with all platforms. It allows large data sets to
undergo distributed processing and storing of the data under the environment that is distributive.
The modules that constitute Hadoop are as follows:
 The Java utility libraries and functions are the first components that together comprise the
Hadoop Common. These facilitate the starting of the Hadoop system due to the way they
are scripted.
 The second component is the YARN which acts as a task scheduler and is responsible for the
dataset management in clusters.
 The third component is Hadoop Distributed Filesystem (HDFS) which is the distributed file
system.
 The fourth component is the Map-Reduce which is used for parallel data processing [4].
Capabilities and Limitations
Hadoop Capabilities
 It has the capability of storing massive data (due to HDFS).
 Due to the undefined schema of HDFS, the data from different scattered sources can be
stored in Hadoop.
 The bulk of data can be ingested with maximum velocity not interrupting the queuing and
data scale.
 Data processing and pattern identification is facilitated.
 Data integrity is maintained.
Hadoop Limitations
 Real-time processing of data is not yet successful.
 Coding for developers can be a tough task.
 Highly complex
 Iterative model is not supported [5].
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide
1 out of 15
Related Documents

Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
Copyright © 2020–2025 A2Z Services. All Rights Reserved. Developed and managed by ZUCOL.


