CETM75 Assignment 2 – UK

Module Code :- CETM75
Title :- School of Computer Science
Task 1
Scenario
Introduction :-

Milllie’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 computerise their customer management and stock recording system. You have been tasked with developing a database application to meet their needs.
CETM75 Assignment 2 – UK

CETM75 Assignment 2

Current Position :-
Currently MME Ltd record 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 every transaction that takes place in any of the stores.

A stock ware house is also kept.This makes it possible to see where any given product including its identifier type name description cost is currently stored. The stock ware house 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 organisation 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 worth while en hancements to the current system.

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

Entity-Relationship Diagram

Note: The data dictionary is only partially complete.

Task 1:
a) Subsequently produce a single SQL script file which can be run within PostgreSQL with out 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 develop:

i. A PL/pgSQL stored procedure and any associated code which allows for registration of new customers.
ii. A PL/pgSQL stored procedure and any associated code which allows an existing customer to purchase a product. This transaction must allow the client to specify a specific product to purchase a delivery date and time ensuring that the delivery can only be booked if both that 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 required functionality.

When developing the system you should take into account the important development issues 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 in correct 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 they would have this privilege.

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

CETM75 Assignment 2 – UK

Task 3:
You are required to prepare and submit a 5 to 10-minute voice-over screencast in which you present a set of Power point slides and critically discuss the potential benefits of using a NoSQL document store database for the organisation from Task 1. It is recommended that you use a software tool such as Screencast-o-matic which can be downloaded If your screencast exceeds ten minutes then only the first ten minutes will be viewed and assessed.

You must use up-to-date academic research literature in your review, and provide correctly cited references using the Harvard referencing system with in the Powerpoint slides. Note there is no need to submit a copy of your Powerpoint slides.

It is recommended that you include the following content in your Powerpoint slides:
1.A title slide (one slide);

2.Slides which provide an overview of NoSQL document stores (two slides maximum);

3.Slides which provide a critical discussion of the benefits of NoSQL document stores two slides maximum

4.A slide (one slide maximum) which gives a summary;

5.Two slides maximum which contains your reference list in Harvard format.

CETM75 Assignment 2 – UK

CETM75 Assignment 2

This assessment contributes 65% to your final module mark.

The following learning outcomes will be assessed:

3.Display a critical understanding of data models, e.g. relational, NoSQL and where they should be used.

4.Use Database Management Systems (e.g. Oracle, Postgres) and associated technologies in secure information and data base systems development

Important Information
You are required to submit your work within the bounds of the University Infringement of Assessment Regulations (see your Programme Guide). Plagiarism paraphrasing and downloading large amounts of information from external sources, will not be tolerated and will be dealt with severely. Although you should make full use of any source material which would normally be an occasional sentence and/or paragraph (referenced) followed by your own critical analysis/evaluation. You will receive no marks for work that is not your own. Your work may be subject to checks for originality which can include use of an electronic plagiarism detection service.

Where you are asked to submit an individual piece of work the work must be entirely your own. The safety of your assessments is your responsibility. You must not permit another student access to your work.

CETM75 Assignment 2 – UK

Where referencing is required unless other wise stated the Harvard referencing system must be used (see your Programme Guide).

Please ensure that you retain a duplicate of your assignment We are required to send samples of student work to the external examiners for moderation purposes. It will also safe guard in the unlikely event of your work going astray.

ORDER This CETM75 Assignment 2 NOW And Get Instant Discount

Order Your Assignment