Add the full set of drop table statements to your solutions

Assignment Help Database Management System
Reference no: EM132127490

Databases Assignment - Monash Library Services (MonLib) Case Study

TASK 1: Data Definition

For this task you are required to complete the following:

1.1 - Add to your solutions script, the CREATE TABLE and CONSTRAINT definitions which are missing from the FIT2094_2018S2_A2_Schema_Start.sql script. You MUST? use the relation and attribute names shown in the data model above to name tables and attributes which you add.

1.2 - Add the full set of DROP TABLE statements to your solutions script. In completing this section you must not use the CASCADE CONSTRAINTS clause? as part of your DROP TABLE statement (you should include the PURGE clause).

TASK 2: Data Manipulation

Run the script FIT2094_2018S2_A2_Insert_Start.sql to add some initial data into the tables you have created so far.

For this task you are required to complete the following sub-tasks in the same order they have mentioned:

2.1 MonLib has just purchased its first 3 copies of a recently released edition of a book. Readers of this book will learn about the subjects "Database Design" and "Database Management".

Some of the details of the new book are:

Call Number: 005.74 C822D 2018

Title: Database Systems: Design, Implementation, and Management

Publication Year: 2018

Edition: 13

Publisher: Cengage

Authors: Carlos CORONEL (author_id = 1 ) and

Steven MORRIS (author_id = 2)

Price: $120

You may make up any other reasonable data values you need to be able to add this book.

Each of the 3 MonLib branches listed below will get a single copy of this book, the book will be available for borrowing (ie not on counter reserve) at each branch:

Clayton (Ph: 8888888881)

Oakleigh (Ph: 8888888882)

Mulgrave (Ph: 8888888883)

Your are required to treat this add of the book details and the three copies as a single transaction.

2.2 An Oracle sequence is to be implemented in the database for the subsequent insertion of records into the database for BORROWER table.

Provide the CREATE SEQUENCE statement to create a sequence which could be used to provide primary key values for the BORROWER table. The sequence should start at 10 and increment by 1.

2.3 Provide the DROP SEQUENCE statement for the sequence object you have created in question 2.2 above.

TASK 3:

The sequence created in task 2 must be used to insert data into the database for the task 3 questions. For these questions you may only use the data supplied in this task.

You must correctly manage transactions with these tasks.

For this task you are required to complete the following sub-tasks in the same order they have been mentioned:

3.1 Today is 20th September, 2018, add a new borrower in the database. Some of the details of the new borrower are:

Name: Ada LOVELACE

Home Branch: Clayton (Ph: 8888888881)

You may make up any other reasonable data values you need to be able to add this borrower.

3.2 Immediately after becoming a member, at 4PM, Ada places a reservation on a book at the Mulgrave branch (Ph: 8888888883). Some of the details of the book that Ada has placed a reservation on are:

Call Number: 005.74 C822D 2018

Title: Database Systems: Design, Implementation, and Management

Publication Year: 2018

Edition: 13

You may assume:

  • MonLib has not purchased any further copies of this book, beyond those which you inserted in Task 2.1
  • that nobody has become a member of the library between Ada becoming a member and this reservation.

3.3 After 7 days from reserving the book, Ada receives a notification from the Mulgrave library that the book she had placed reservation on is available. Ada is very excited about the book being available as she wants to do very well in FIT2094 unit that she is currently studying at Monash University. Ada goes to the library and borrows the book at 2 PM on the same day of receiving the notification.

You may assume that there is no other borrower named Ada Lovelace.

3.4 At 2 PM on the day the book is due, Ada goes to the library and renews the book as her exam for FIT2094 is in 2 weeks.

You may assume that there is no other borrower named Ada Lovelace.

TASK 4:

For this task you are required to complete the following sub-tasks.

After using the system for some time, MonLib has realised that it is necessary to

4.1 Record whether a book is damaged (D) or lost (L). If the book is not damaged or lost, then it is good (G) which means, it can be loaned. The value cannot be left empty for this. Change the "live" database and add this required information for all the books currently in the database. You may assume that condition of all existing books will be recorded as being good. The information can be updated later, if need be.

4.2 Allow borrowers to be able to return the books they have loaned to any library branch as MonLib is getting a number of requests regarding this from borrowers. As part of this process MonLib wishes to record which branch a particular loan is returned to. Change the "live" database and add this required information for all the loans currently in the database. For all completed loans, to this time, books were returned at the same branch from where those were loaned.

4.3 Some of the MonLib branches have become very large and it is difficult for a single manager to look after all aspects of the branch. For this reason MonLib are intending to appoint two managers for the larger branches starting in the new year - one manager for the Fiction collection and another for the Non-Fiction collection. The branches which continue to have one manager will ask this manager to manage the branches Full collection. The number of branches which will require two managers is quite small (around 10% of the total MonLib branches). Change the "live" database to allow monLib the option of appointing two managers to a branch and record, for all managers, which collection/s they are managing.

In the new year, since the Mulgrave branch (Ph: 8888888883) has a huge collection of books in comparison to the Clayton and Oakleigh branches, Robert (Manager id: 1) who is currently managing the Clayton branch (Ph: 8888888881) has been asked to manage the Fiction collection of the Mulgrave branch, as well as the full collection at the Clayton branch. Thabie (Manager id: 2) who is currently managing the Oakleigh branch (Ph: 8888888882) has been asked to manage the Non-Fiction collection of Mulgrave branch, as well as the full collection at the Oakleigh branch. Write the code to implement these changes.

Attachment:- Assignemnt -Case Study File.rar

Verified Expert

The completed solution. Made in SQL Developer. The answers are pasted in the correct format as the SQL file template states. Open the file in Notepad ++ you can see the solution.

Reference no: EM132127490

Questions Cloud

Outlining the negotiation plan for new union contract : Prepare a slide presentation layout for the Board of Directors (BOD) outlining the negotiation plan for a new union contract.
Explain why the given has happened : From time to time, including but not limited to the 1971-3 experience in the US, wage and price controls have been imposed to reduce inflation.
What were principal factors that caused the inflation rate : In 1980, the inflation rate in Italy was 21% and the unemployment rate was 4.4%. By 1998, the inflation rate in Italy had declined to 2% and the unemployment.
What were the real reasons inflation was so low : During the early 1960s, wage and price ‘‘guidelines'' were in place that were supposed to limit the gains in wages to the increase in productivity.
Add the full set of drop table statements to your solutions : FIT2094 Databases Assignment - Monash Library Services (MonLib) Case Study, Monash University, Australia. Add the full set of DROP TABLE statements to solution
Why the rate of inflation reacted so differently : Following the first energy shock in 1973, when oil prices rose $10/bbl, the rate of inflation averaged 8% for the next five years.
Key transformational qualities the leader possesses : Determine the key transformational qualities the leader possesses. What are the components of being transformational leader?
What factors caused the given tradeoff : In Europe, the UK is the only country where there has been a consistent tradeoff between inflation and unemployment. What factors caused this tradeoff.
How to prevent poor ethical decision-making : Why rewarding ethical behavior is difficult in short term? How To Prevent Poor Ethical Decision-Making?

Reviews

inf2127490

11/20/2018 3:11:12 AM

I got a perfect essay that made me score 9/10 in the assessment exam and it will surely enhance my grades that I had degraded in the previous exam due to incorrect and late submission of the assignment. But this time since it was done by your perfect tutors I was expecting some good marks and hurray I got it. Thanks to you dear team.

len2127490

10/1/2018 12:33:29 AM

Before starting work on the task you MUST complete the header by adding your name etc., in the solutions script. In completing this assignment you are not permitted to manually: lookup a value in the database, obtain its primary key or highest or lowest value in a column, or calculate values external to the database eg. on a calculator and use such values in your answers.

len2127490

10/1/2018 12:33:23 AM

SUBMISSION REQUIREMENTS - Due Date: Wednesday (Week 11) For this assignment there is only one file to submit. You are required to submit your solutions script file to Moodle before the assignment due date/time. If you need to make any comments your marker/tutor should be aware of please place them at the head of your solutions script in the "Comments for your marker:" section. Late submission will incur penalties as outlined in the unit guide.

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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