Display a critical understanding of data models

Assignment Help Database Management System
Reference no: EM133342569

Learning outcome 1: Display a critical understanding of data models, e.g. relational, NoSQL, and where they should be used.

Learning outcome 2: Use Database Management Systems (e.g. Oracle, Postgres) and associated technologies in secure information and database systems development

Task 1

Scenario

Introduction

Millie's Musical Emporium (MME) Ltd has grown from a small company based in a small market town, to one of the country's leading suppliers of musical instruments and associated media (e.g. printed music, books, CDs, and DVDs). However, they have never quite managed to move away from using a paper-based filing system for storing customer, sales, and stock information. To cope with their growth and allow for more efficient stock recording, the store has decided to computerize its customer management and stock recording system. You have been tasked with developing a database application to meet their needs.

Current Position

Currently, MME Ltd records details of all customers (including their name, address, telephone number, date of birth, and bank details, i.e. bank name, address, sort code, and account number) who either purchase a musical instrument or media. Records are also kept of everytransaction that takes place in any of the stores.

A stock warehouse is also kept. This makes it possible to see where any given product (including its identifier, type, name, description, and cost) is currently stored. The stock warehouse also contains details of all purchases and allows stores to move stock from one store to another. This is particularly useful for those customers who wish to purchase a product that is not available in their local store.

The organization would also like to be able to create management reports, which may, for example, show all sales at a particular store or a group of stores, between certain dates.

Proposed System

Using PostgreSQL, you are required to design and develop a prototype system that not only satisfies the requirements of the current system but also has features that you consider to be worthwhile enhancements to the current system.

To achieve this, base your system on the following entity-relationship diagram and partial data dictionary

Task 1:
a) Subsequently, produce a single SQL script file that can be run within PostgreSQL without error, and which drops and creates your tables (correctly ensuring that any referential integrity issues can be resolved), and inserts sample data into each table.

The SQL script file must also contain the code for the PL/pgSQL code that you implement in
(b) below.

b) Using PostgreSQL development:
i. A PL/pgSQL stored procedure (and any associated code) that allows for the registration of new customers.
ii. A PL/pgSQL stored procedure (and any associated code) that allows an existing customer to purchase a product. This transaction must

allow the client to specify a specific product to purchase, delivery date and time, ensuring that the delivery can only be booked if boththat product and delivery slot are available.

Each PL/pgSQL stored procedure may require you to develop other PL/pgSQL stored functions, triggers, and cursors that you think necessary to fully implement the requiredfunctionality.

When developing the system you should take into account the important developmentissues identified below:
• Data types used should match those used in the tutorial booklet.
• Dates and other relevant data should be validated accordingly.
• Exception Handling must be in place to deal with all errors, e.g. invalid dates,duplicate customers, incorrect products specified, insufficient stock etc.
• Any fields that require mandatory input, i.e. NOT NULL must be validated on input.

Task 2

Millie's Music Emporium has two users: admin and customer.
For each table specify what privileges you would give each user and briefly explain why theywould have this privilege.

As a reminder here is a link to privileges in PostgreSQL

You do not have to test these privileges in PostgreSQL, just list the commands, i.e. writethe relevant GRANT commands for each table and provide a brief explanation.

The Harvard referencing system must be used (see your Program Guide).

Attachment:- Database Management Systems.rar

Reference no: EM133342569

Questions Cloud

Assess the corporate-level strategies you believe : Based on your analysis, conclude which corporation is most likely to be successful in the long term. Support your determination with at least three pieces
Determine employee and leadership qualities : Determine employee and leadership qualities as related to an organizational culture of creativity and innovation - Define corporate culture
Culture wars-cultural politics and social media : How are culture wars and cultural politics similar? How are they different? Which issues divide Americans most significantly today?
Grafting surgery for large burn : ?A client had wound grafting surgery for a large burn and is now in the rehabilitation setting. The client asks the nurse, "Why can't I sleep in my normal posit
Display a critical understanding of data models : Display a critical understanding of data models and Use Database Management Systems (e.g. Oracle, Postgres) and associated technologies in secure information
Describe holistic assessment nursing : Describe holistic assessment nursing. Discuss a component of a holistic assessment in nursing.
Cortisol-adrenalin and noradrenalin play in anxiety : What is role does cortisol, adrenalin and noradrenalin play in anxiety? What is happening in the body that produces the symptoms of anxiety?
Show a comprehensive understanding of methodologies : Show a comprehensive understanding of methodologies, tools, and technologies formanaging and developing secure database systems
Discuss ethically and culturally sensitive economic issue : Discuss an ethically and culturally sensitive economic issue that has positively or negatively affected your health care organization.

Reviews

Write a Review

Database Management System Questions & Answers

  Data manipulation in excel

Data Manipulation in EXCEL-How to enter in data manually to an EXCEL spreadsheet and then create formulas to perform calculations on that data. In this lesson, you will learn how to import data to EXCEL from an external source,use tools built-in t..

  What are the advantages of using the vpd mechanism

What are the advantages and disadvantages of using the VPD mechanism to control access to data sub-themes: What can VPDs do the views cannot?

  Identify issues and challenges that the organisation faces

Identify the issues and challenges that the organisation faces in the management of its IT Infrastructure. Use the information provided in chapter 5 as a guide

  Determine the concurrency control factors that can be used

Determine the concurrency control factors that can be used to ensure valid execution of transactions within the current multiuser environment.

  List all the foreign key constraints among these relations

Give an example of a (plausible) constraint involving one or more of these relations that is not a primary key or foreign key constraint.

  Redraw the erd using the crow foot model

Looking at the ERD, is Pet an optional or mandatory participant in the "Owns" relationship? Looking at the relationship cardinalities show in the ERD, what is the maximum number of pets that a customer can own

  Why relational database would be suitable information system

Explain why a relational database would be suitable information system for the organisation such as the one provided in the case study and provide (3) three reasons to support your recommendation (500 words).

  Create and input the design of the table

When building a database, you should first create and input the design of the table and reports at the same time. determine the input and then design the tables

  Assume that the database system in your organization has

write a 200- to 300-word short-answer response for the followingsuppose that the database system within your

  You must have at least these entities region factory

you must have at least these entities region factory employee department training class. you should use the attributes

  Creating a database design in visio

Creating a Database Design in Visio-  Create a database diagram with the entities and attributes that the scenario identified (i.e., a college tracking students, courses, and instructors)

  Brazilian federal data processing service

Examine the proposed business ethical problem that the Brazilian Federal Data Processing Service is presently experiencing. Determine whether you agree or disagree that Brazil's problem is an ethical one that should be corrected. Provide a rationa..

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