1 a) Database Implementation
1 b) Populate Data
Borrow Table
1 c) Queries
Query c)
SELECT ISBN, title, volnumber, NoofCopies FROM Book;
Query d)
SELECT count(*) AS NumberOfBook FROM Book WHERE year_published<2008;
Query e)
SELECT * FROM Book WHERE Price>(select avg(price) from Book);
Query f)
SELECT ISBN, title, volnumber, year_published, NoofCopies, price, publisherfullname FROM Publisher INNER JOIN Book ON Publisher.publisherID = Book.PublisherID WHERE (((Book.year_published)=2017) AND ((Publisher.publisherfullname)=”ACER Press”));
Query g)
SELECT Person.personID, Person.firstname, Person.lastname, Person.address, Borrow.borrowdate, Borrow.returndate INTO Borrower FROM Person INNER JOIN Borrow ON Person.personID = Borrow.personID;
2 a) Relational Database Schema
TablePublisher (Fieldname: text, Fieldaddress: text, Fieldphone: text, FieldURL: text)
TableAuthor (Fieldname: text, Fieldaddress: text, FieldURL: text)
TableBook (FieldISBN: number, Fieldtitle: text, Fieldprice: currency, Fieldyear: number, FieldauthorName*: text, FieldpublisherName*: text)
TableCustomer (Fieldemail: text, Fieldname: text, Fieldaddress: text, Fieldphone: text)
TableShoppingBasket (FieldbasketID: number, FieldcustomerEmail*: text, FieldISBN*: number, FieldNoOfBooks: number)
TableWarehouse (Fieldcode: text, Fieldaddress:text, Fieldphone:text)
TableStocks (FieldwarehouseCode*: text, FieldISBN*:number, FieldNoOfBooks: number)
(teratrax.com n.d.)
2 b) Composite Attributes
The attribute which can be split into another significant attributes is called composite attribute.
The database ‘BookStore’ contains the composite attribute –
Address – it may be divided into Street, City, and Postcode etc. So, this is the composite attribute.
Name – it may be divided into FirstName, LastName etc. So, this is the composite attribute.
2 c) Relationship Cardinality
Relationship between Book — Author
Business Rule:
An author may write any number of books while a book will be written by only one author.
Relationship between Book — Publisher
Business Rule:
A publisher may publish any number of books while a book will be published by only one publisher.
Relationship between Book — Warehouse
Business Rule:
A book will be available any any number of warehouses and a warehouse will store any number of books.
(Tutorialspoint.com, 2018)
3 a) Hadoop
Hadoop is an open source system of Apache that works on Big Data. It is used in distributed environment on cluster systems. It works on the technology developed by Google – MapReduce. The Big Data does not get accessed easily by Relational Database Management System (RDBMS) easily. Therefore, to resolve this issue MapReduce is designed and Hadoop is developed on the MapReduce algorithm.
In Hadoop, the big task is shared among clustered systems and each system process its assigned task. When all the tasks are processed, Hadoop collects them and arrange them to produce final result.
Hadoop has lots of skills that make it different and efficient from RDBMS like below-
Hadoop has little bit limitations like below-
Conclusion
Hadoop is one of the best technology for Big Data. It is appropriate for Big Data applications as all the data gets divided into small chunks and processes and later combined for desired output. There are lots of features that are very usefull in Hadoop for Big Data processing but for small data it is not suitable. There are so many applications that use Big Data like railways, airlines etc. It works very well in that industries. In today’s world it is in high demand.
(Apache Software, 2014)
MapReduce is the algorithm that is the base of the technology developed to process the Big Data. It is the software framework used to develop applications to process Big Data like Hadoop.
It works very well and in a very organized way to process the Big Data. It divides the big task and distributes to the clustered system to process that data. After taking the results from all vluster machines, it sort them and combine them to make final output.
The Map is the term used to divide the task and Reduce is the term sued to sort and arrange the outputs and make the final output for the users.
It work in the pair of <key, value>. The input and output both are in the same format- <key, value>
MapReduce works very well in the following fields-
MapReduce has little bit limitations with lots of benefits-
Conclusion
MapReduce is very good and effective framework for Big Data applications. It does not suits well for small applications. Everything is very systematic in it. All the data gets processed with easy by it in the cluster systems in a distributed environment.
References
[1] Tutorialspoint.com, DBMS – Normalization, 2018. [Online]. Available: https://www.tutorialspoint.com/dbms/database_normalization.htm. [Accessed: 11-May-2018]
[2] teratrax.com, SQL Server Data Types and Ranges, n.d. [Online]. Available: https://www.teratrax.com/sql-server-data-types-ranges/ [Accessed 11 May 2018].
[3] Apache Software, What is Apache Hadoop, 2014. [Online]. Available:
https://hadoop.apache.org// [Accessed 11 May 2018].
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Contact Essay is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Essay Writing Service Works
First, you will need to complete an order form. It's not difficult but, in case there is anything you find not to be clear, you may always call us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download