COMP2350 Database Systems Assignment

Assignment Help Database Management System
Reference no: EM132642555

COMP2350 Database Systems - Macquarie University

Database Design and Manipulation

The background knowledge for the assignments is given in the textbook(s), lectures, any other components of the unit, in the prerequisite units ISYS114 or COMP1350, and in the readings provided on ilearn. However, some parts of the assignments may not be answered without prior independent research and/or searching for other sources of information.

This assignment concerns database Database Design and Manipulation. It will be marked out of 100 and will contribute 10% towards your final grade. It consists of normalising some given relation schemas to an appropriate level, implementing those resultant relations employing MySQL, and carrying out some simple data manipulation using those relations.

Problem Context

The context of this Assignment is the same as for Assignment 1, namely the Sydney Library
(SL). This has been reproduced as is in the Appendix for your convenience.

We pretend that your firm had an agreement with SL to design and implement the Database, and the job fell on you. You in turn assigned that task to an intern you are mentoring. The intern has gone through the specification and designed some relational schemas for this purpose. You had a quick look at them, and one of them particularly stood out since it had quite a number of attributes that you suspected should best belong to different relations. The suspect relation schema in question is:

Abnormal_Rel( BookID, BookTitle, Author, Publisher, PubYear, LibBranchID, BranchSuburb, BookStatus, BookPrice, MemberID, MemberName, MemberAddress, MemberExpDate, BookIssueID, DateBorrowed, DateReturned, ReturnDueDate )
Upon discussion with the intern you gathered that the BookID identifies a specific physical volume of book that is housed at a definite branch of SL identified by LibBranchID. A book can be either available or on loan, indicated by the BookStatus value. Whenever a book is issued (loaned) to a member, a new ID is assigned to the transaction related to that book (BookIssueID). For instance, if a member issues borrows five books in one go, five different BookIssueIDs will be generated for those five books.
You took upon yourself to explain to the intern the issue at hand, and how the issue should be addressed. Complete the following tasks in that context.

Task Specifications
You will submit two files on iLearn:
1. Assignment2.pdf. You will first put all your answers to the tasks below (including copying and pasting any SQL code) into a file Assignment2.doc (carefully following the instructions provided), then generate a .pdf file called Assignment2.pdf.
2. Assignment2Code.sql. This is a text file. One way to produce it is first open a new text file called Assignment2Code.txt employing a text editor such as Notepad, WordPad or TextEdit. You will then copy and paste the required SQL codes into it as text. When completed, save it, exit and replace the suffix .txt by the suffix .sql. (There are more efficient ways doing it - this suggestion is provided in case some student does not already know how to do it.)

Task 1
Explain in a short paragraph what non-trivial Functional Dependencies (FDs) are. Identify the non-trivial FDs on the relation Abnormal_Rel. Then identify the Candidate key(s) of Abnormal_Rel.

Task 2
Explain the three forms of Anomalies in three short paragraphs. Determine for each anomaly if the relation Abnormal_Rel is susceptible to that anomaly. Support your determination with a small example.

Task 3
Determine the highest normal form that the relation Abnormal_Rel is in. Then:
1. Normalize/decompose it until you get relations that are in 3NF. Use appropriate illustration to aid the understanding of your work.
2. Check if the resultant relations are in BCNF. If not, decompose them as necessary until you get all of them in BCNF.

Task 4
Now you have a set of relation(s) in BCNF.
1. Create an appropriate table for each such relation (in BCNF), keeping the key constraints in mind. Copy and paste into your .doc document the SQL code you used for this purpose. Also paste into your Assignment2Code text file the same.
2. Insert five rows of (made-up) data into each table. Make sure that the data you enter in these tables should be sufficient to return at least one row for each query in Task
5. For instance, SL should hold at least one copy of the book Anna Karenina by Leo Tolstoy. Copy and paste into your .doc document the SQL code you used for this purpose. Also paste into your Assignment2Code text file the same.
3. Display the content of each table using a SECECT * query. Copy and paste into your
.doc document the result that was displayed.

Task 5
Write SQL queries to answer the following four questions (Q1-Q4). With respect to each,
• Copy and paste into your .doc document the SQL query you used for this purpose. Also paste into your Assignment2Code text file the same.
• Display the result of running this query. Copy and paste into your .doc document the result that was displayed.

[Query 1] List the name of members who have ever borrowed the book with the title
Anna Karenina.

[Query 2] List each member (ID and name) who has books currently overdue against them, together with the ID and title of those books.

[Query 3] List the five most popular book(s) owned by SL. (Interpret this task in a sensible way. If SL has 3 copies of Anna Karenina, we are talking about popularity of the book Anna Karenina, not popularity of its individual copies. Different students are still likely to interpret it differently. Clarify how you "measure" popularity.)

[Query 4] How many books were lent out from SL since Covid-19 related lockdown started (assume it to be March 01, 2020), but have not been returned yet? (In this case, a book means a volume - if two copies of Anna Karenina satisfy this criterion, they should be counted as two books.)

Note: Need only Task 4 and 5.

Reference no: EM132642555

Questions Cloud

Overall theme of impact of covid-19 on organizations : Develop a research proposal on the overall theme of impact of COVID-19 on Organizations. Staying within this theme you can choose a relevant topic.
What the problem in insurance markets is called : What the problem in insurance markets is called. Insurance companies must be careful when marketing their coverages.There is a tendency for who need insurance
What is the value of stock rights received on March : On October 1, 2020, JFC ordinary shares was split up on a 4-for-1 basis. What is the value of stock rights received on March 1, 2020
Describe exactly how the officers got the information : Describe exactly how the officers got the information. Summarize the arguments the majority makes to support its conclusion that getting and recording thermal.
COMP2350 Database Systems Assignment : COMP2350 Database Systems Assignment Help and Solution, Macquarie University - Assessment Writing Service - Database Design and Manipulation
Show the journal entry or entries needed to record : Show the journal entry or entries (accounts and amount) needed to record each transaction. Paid $10,646 million cash related to accounts payable due to supplier
Explain the various kinds of cover-up attempts : Explain the various kinds of cover-up attempts. Research online to find a case where each of the cover-ups was used, and why.
Describe kohlberg model of cognitive moral development : Describe Kohlberg's model of cognitive moral development.
International business ethics perspective : One mobile phone operators are often seen on social media as unfair to consumers. According to the social media "facebook" users, many people say that after pay

Reviews

Write a Review

Database Management System Questions & Answers

  Make the flowchart of the above business processes

create the flowchart of the above business processes. The assignment will be completed in 2 parts:1. AS-IS Model2.TO-BE Model once feedback is given from Professor after completing Part 1 (AS-IS Model)

  Describe the data breach incident of the data breach

Describe the data breach incident and the primary causes of the data breach. Assess if there are deficiencies in the regulatory requirements and whether they need to be changed, and how they need to be changed.

  Create the following documents for the proposed system

MGMT321 Group Project: Create the following documents for the proposed system and deliver each SDLC documents by the end of each designated module, as shown below

  Assume you were a newly hired it security manager at a

assume you were a newly hired it security manager at a software development company that in the past hasnt paid much

  Er diagram representing the logical data model

Create an Entity-Relationship Diagram representing the logical data model for the following scenario. It should include all entities, attributes, relationships and keys.

  How a relational database solution can be applied

Write a justification paper, of at least 2 pages, to your boss explaining how a relational database solution can be applied to a current business problem.

  Evaluate maximum rate at which data can be read from disk

What is the maximum rate at which data can be read from disk, assuming that we can only read data from one surface at a time? What is the average rotational latency?

  Create a named range using the left column as the name

EWS05 H1- Click the Data Inputs worksheet tab. Select the range A3:B3, and then create a named range using the left column as the name. Select the range A6:E10, and then create a named range using Lesson_Pricing as the name.

  Create the roles, and grant the appropriate privileges to it

Look at attach Figure. Your job is to write the code that implements the matrix using three roles: CHIEF_EDITOR, WRITERS, and EDITORS

  Knowledge and data warehouse hi there i need to start the

hi there i need to start the assignment for data warehouse where i need to define assignmentyou are required to design

  Development of an effective entity relationship model

Determine the steps in the development of an effective Entity Relationship Model (ERM) Diagram and determine the possible iterative steps

  How you can change the above table into two-nf

Why it is not in 2NF? How you can change above table into 2NF. What is result of arithmetic expression involving nulls for instance, what 7 + null would return?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd