Docsity

Database Design & Development Assignment: Smart Movers Transport Company, Study Guides, Projects, Research of Computer science

Toggle sidebar
bg1
Database Management System for
Smart Movers Transport Company
Higher Nationals in Computing
Database Design & Development
Assignment Brief
Student Name/ID Number: F.Thameena Banu
Unit Number and Title: Unit 4: Database Design & Development
Academic Year: 2017/2018
Unit Tutor: Ms.Ishani
Assignment Title: Unit 4: Database Design & Development (Database
system for the SmartMovers Transport Company)
Issue Date: 8-Feb-2018
Submission Date: 23-June- 2018
IV Name & Date:
Submission Format:
Part 1: The submission is in the form of an individual written report. This
should be written in a concise, formal business style using single spacing
and font size 12. You are required to make use of headings, paragraphs and
subsections as appropriate, and all work must be supported with research
and referenced using the Harvard referencing system. Please also provide a
bibliography using the Harvard referencing system. The recommended word
limit is 2,000–2,500 words, although you will not be penalised for exceeding
the total word limit.
Part 2: The submission is in the form of a fully functional relational database
system demonstrated to the Tutor; and an individual written report (please
see details in Part 1 above).
Part 3: The submission is in the form of a witness statement of the testing
completed by the Tutor; technical documentation; and a written report
(please see details in Part 1 above).
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Database Design & Development Assignment: Smart Movers Transport Company and more Study Guides, Projects, Research Computer science in PDF only on Docsity!

Database Management System for

Smart Movers Transport Company

Higher Nationals in Computing

Database Design & Development

Assignment Brief

Student Name/ID Number: F.Thameena Banu

Unit Number and Title: Unit 4: Database Design & Development

Academic Year: 2017/

Unit Tutor: Ms.Ishani

Assignment Title: Unit 4: Database Design & Development (Database system for the SmartMovers Transport Company)

Issue Date: 8-Feb-

Submission Date: 23-June- 2018

IV Name & Date:

Submission Format:

Part 1: The submission is in the form of an individual written report. This should be written in a concise, formal business style using single spacing and font size 12. You are required to make use of headings, paragraphs and subsections as appropriate, and all work must be supported with research and referenced using the Harvard referencing system. Please also provide a bibliography using the Harvard referencing system. The recommended word limit is 2,000–2,500 words, although you will not be penalised for exceeding the total word limit.

Part 2: The submission is in the form of a fully functional relational database system demonstrated to the Tutor; and an individual written report (please see details in Part 1 above).

Part 3: The submission is in the form of a witness statement of the testing completed by the Tutor; technical documentation; and a written report (please see details in Part 1 above).

Unit Learning Outcomes:

LO1 Demonstrate a range of interpersonal and transferable communication skills to a target audience. LO2 Apply critical reasoning and thinking to a range of problem-solving scenarios. LO3 Discuss the importance and dynamics of working within a team and the impact of team working in different environments. LO4 Examine the need for Continuing Professional Development (CPD) and its role within the workplace and for higher-level learning.

Task 1 – (LO1) Use an appropriate design tool to design a

relational database system for a substantial problem

Task 1.1 (P1) Design a relational database system using appropriate design tools and techniques, containing at least four interrelated tables, with clear statements of user and system requirements.

a. Identify the user and system requirements to design a database for the above scenario. b. Identify entities and attributes of the given scenario and design a relational database system using conceptual design (ER Model) by including identifiers (primary Key) of entities and cardinalities, participations of relationships. c. Convert the ER Model into logical database design using relational database model including primary keys foreign keys and referential Integrities. It should contain at least five interrelated tables.

Note: It is allowed to have your own assumptions and related attributes within the scope of the case study given.

Task 1.2 (M1) Produce a comprehensive design for a fully functional system, which includes interface and output designs, data validations and data normalisation.

a. Explain data normalization with examples. Check whether the provided logical design in task 1.1 is normalised. If not, normalize the database by removing the anomalies. b. Design set of simple interfaces to input and output for the above scenario using Wireframe or any interface-designing tool. c. Explain the validation mechanisms to validate data in the tables with examples.

Task 1.3 (D1) Assess the effectiveness of the design in relation to user and system requirements

a. Check whether the given design (ERD and Logical design) is representing the identified user and system requirements to access the effectiveness of the design.

Task 3.2 (M4) Assess the effectiveness of the testing, including an explanation of the choice of test data used.

a. Explain how the selected test data in task 3.1 b) can be used improve the effectiveness of testing.

Task 3.3 (D2) Evaluate the effectiveness of the database solution in relation to user and system requirements, and suggest improvements.

a. Get independent feedback on your database solution from the non- technical users and some developers (use surveys, questioners, interviews or any other feedback collecting method) and make recommendations and suggestions for improvements in a separate conclusion/recommendations section.

Task 4- LO4 Produce technical and user documentation

Task 4.1 (P5) Produce technical and user documentation.

a. Prepare a simple users' guide and a technical documentation for the support and maintenance of the software.

Task 4.2 (M5) Produce technical and user documentation for a fully functional system, including diagrams showing movement of data through the system, and flowcharts describing how the system works.

a. Your technical documentation should include some of the UML diagrams (Use case diagram Class diagram, etc.), flow charts for the important functionalities, context level DFD and the Level 1 DFD.

Task 4.3 (D3) Assess any future improvements that may be required to ensure the continued effectiveness of the database system.

a. Provide recommendations for future improvements to the database system.

Relational Database Design for a Logistics

Company

User and System Requirements

User Requirements: - Record all the details about the customers, products, payments, jobs, loads, depots, and transport units. - Ensure the data is secured.

System Requirements: - The company needs computers to run the database application. - The employees who have knowledge to maintain the database. - The software requirements include Windows 10 client version

and SQL Server 2017. - The hardware requirements include an initial disk space of 160 MB and a minimum of 6 GB of RAM for the SQL Server.

Entity-Relationship (ER) Diagram

The ER diagram for the given scenario is as follows:

The entities and their corresponding fields are:

| Entities | Fields | |---------------|-------------------------------------------------------------| | Customer | Cus-no, C-name, Address, T-no | | Product | P-id, Type | | Job | Job-no, S-loc, Des | | Load | Load-no, L-type | | Deport | Deport-no, D-loc | | Payment | Invo-no, Pay-d, Amount | | Transport Unit| Cont-no, Dri-id, Amo, Lor-no |

Relational Database Design

The relational database design based on the ER diagram is as follows:

Customer(Cus-no, C-name, Address, T-no) Product(P-id, Type) Job(Job-no, S-loc, Des, Cus-no, P-id) Load(Load-no, L-type, Job- no) Deport(Deport-no, D-loc) Payment(Invo-no, Pay-d, Amount, Cus- no, Job-no) Transport_Unit(Cont-no, Dri-id, Amo, Lor-no, Job-no)

The primary keys are underlined, and the foreign keys are indicated in italics.

Data Normalization

The provided logical design is not fully normalized. Let's apply the normalization process to remove any anomalies.

First Normal Form (1NF): The given design is already in 1NF, as it satisfies the requirement of having atomic values and no repeating groups.

Second Normal Form (2NF): The design is in 2NF, as all the non-key columns are dependent on the table's primary key.

Third Normal Form (3NF): The design is not in 3NF, as there are transitive dependencies. For example, in the Payment table, the Cus-no and Job-no are transitively dependent on the Invo-no primary key.

To achieve 3NF, we need to separate the Payment table into two tables:

Payment(Invo-no, Pay-d, Amount) Payment_Details(Invo-no, Cus-no, Job-no)

Boyce-Codd Normal Form (BCNF): The design is now in BCNF, as it satisfies the condition that for each functional dependency (X → Y), X should be a super key.

ER Diagram

Load Details

The system should be able to handle information related to the loads being transported, such as load sizes, load types, and any other relevant details.

Wireframe for the Scenario

The provided wireframes illustrate the login and registration page, sign-in page, profile page, payment page, new delivery page, and order registered page for the Smart Movers system.

Validation Mechanisms

The text discusses various validation mechanisms to ensure the integrity and validity of data entered into the system, including:

Check Digit

A redundancy check used for error detection, such as the ISBN- numbering system.

Type Check

Confirming that the correct data type is inputted, such as ensuring that only numbers are allowed in an age field.

Length Check

Ensuring that the correct number of characters are entered into a field, such as for a password.

Format Check

Checking if the entered data is in the right and appropriate format, such as for a National Insurance number.

Constraints

The text also discusses various types of constraints that can be used to maintain data integrity in a relational database, including:

Not Null

Ensuring that a column does not hold any null or empty value.

Unique

Ensuring that the values in a column are unique.

Check

Ensuring that the values in a column are within a specified range.

Primary Key

A unique identifier for a table.

Foreign Key

A reference to a primary key in another table, used to establish relationships between tables.

Effectiveness of the Database Design

The text assesses the effectiveness of the database design in relation to the user and system requirements. It concludes that the design represents the necessary information and data to satisfy the requirements, and that the database is an important system that should be monitored and secured.

Developing the Relational Database System

The text provides step-by-step evidence of developing the relational database system, including:

Creating the database Using the database Creating the tables (Customer, Product, Job, Deport, Payment, Transport Unit) Inserting and selecting data from the tables

User Interface and Validation

The text also provides evidence of using a suitable IDE (Microsoft Visual Studio) to create a simple interface for inserting, updating, and deleting data in the database. Additionally, the text mentions that the validation methods explained in the previous task should be implemented.

Primary Key

Primary key is the unique identification in the table. As a record is created as primary key that cannot be duplicated. A table can have only one primary key. Primary key is a specific choice to minimal set of attributes that uniquely specify a row in a table. The purpose of primary key in a table is to ensure row level accessibility. Examples of primary keys include:

Customer ID Job number Invoice number Load number

DELETE

The DELETE command removes one or more records from a table according to specified conditions. The syntax is:

sql DELETE FROM [table name] WHERE [condition]

Database Security

Database security is a top priority for today's organizations. It involves various types of controls, such as technical, procedural/administrative and physical.

Access Control

Access control is the selective restriction of access to a place or other resource. Permission to access a resource is called authorization.

Auditing

Database auditing involves observing a database so as to be aware of the actions of database users, often for security purposes.

Authentication

Authentication is the first step in access control, and there are three common factors used for authentication:

Something you know (such as a password) Something you have (such as a smart card) Something you are (such as a fingerprint or other biometric method)

Encryption

Encryption is the process that uses an algorithm to transform data stored in a database into 'cipher text' that is incomprehensible without first being decrypted.

Integrity Controls

Data integrity is the overall completeness, accuracy and consistency of data. Three integrity constraints are used in a relational database:

Entity Integrity Referential Integrity Domain Integrity

Backups

Backups are copies of data from your database that can be used to reconstruct that data. Backups can be divided into physical backups and logical backups.

SQL Statements

GROUP BY

The GROUP BY statement is used to group the data by one or more column. It is often used in conjunction with aggregate functions (e.g. SUM, COUNT, AVG, etc.) to group the result-set by one or more columns.

ORDER BY

The ORDER BY statement is used to set data in ascending or descending order.

HAVING

The HAVING clause is used to apply a condition to the aggregate results to limit the groups of returned rows.

BETWEEN

The BETWEEN clause is used to get a set of values in a range.

WHERE

The WHERE clause is used to apply a condition to select, update, insert and delete data.

Test Plan

The test plan for the Smart Movers database includes the following:

Check whether the system gives an error message when trying to delete data from a non-existing table in the database. Check whether a value is updated correctly. Check whether an error message is represented when trying to insert data with the wrong data type. Check whether a created table is in the system. Check whether deleted data still exists in the system.

The test plan also includes hardware requirements and potential risks involved in the testing process.

Profile

This is the Profile page of the Smart Movers system. After you log in, you will be directed to this page. Here, you can:

Make a new delivery by clicking the "New Delivery" button View your current deliveries by clicking the "Current Deliveries" button See your delivery history by clicking the "Delivery History" button

New Delivery

In this window, you need to provide your product and load details to make an order. After completing the details, click the "Confirm and Pay" button, which will redirect you to the merchant payment site. Once the payment is completed, your order details will be displayed, and you can return to the homepage by clicking the "Continue to homepage" button.

Technical Documentation

Visual Studio 2017 Requirements

Hardware

1.8 GHz or faster processor, with dual-core or better recommended 2 GB of RAM; 4 GB of RAM recommended (2.5 GB minimum if running on a virtual machine) Hard disk space: up to 130 GB of available space, depending on features installed; typical installations require 20-50 GB of free space Hard disk speed: to improve performance, install Windows and Visual Studio on a solid state drive (SSD) Video card that supports a minimum display resolution of 720p ( by 720); Visual Studio will work best at a resolution of WXGA (1366 by

  1. or higher

Supported Operating Systems

Windows 10 version 1507 or higher: Home, Professional, Education, and Enterprise (LTSB and S are not supported) Windows Server 2016: Standard and Data center Windows 8.1 (with Update 2919355): Core, Professional, and Enterprise Windows Server 2012 R2 (with Update 2919355): Essentials, Standard, Data center Windows 7 SP1 (with latest Windows Updates): Home Premium, Professional, Enterprise, Ultimate

Profile

New Delivery

Microsoft SQL Server 2012 Requirements

Memory

Minimum: Express Editions: 512 MB All other editions: 1 GB Recommended: Express Editions: 1 GB All other editions: At least 4 GB and should be increased as database size increases to ensure optimal performance

Processor

Minimum: 1.0 GHz Recommended: 2.0 GHz or faster

Processor Type

x64 Processor: AMD Opteron, AMD Athlon 64, Intel Xeon with Intel EM64T support, Intel Pentium IV with EM64T support x86 Processor: Pentium III-compatible processor or faster

UML Diagrams and Flowcharts

The technical documentation includes UML diagrams, such as the Use Case Diagram and Class Diagram, as well as flowcharts describing the important functionalities of the system.

Future Improvements

To ensure the continued effectiveness of the database system, the following future improvements may be considered:

Implementing robust data security measures, such as access control, database auditing, authentication, and encryption, to protect the system from unauthorized access and data breaches. Ensuring data integrity through techniques like data normalization and validation to maintain the accuracy and consistency of the stored data. Regularly monitoring and optimizing the database performance to handle increasing data volumes and user demands. Incorporating advanced analytics and reporting capabilities to provide valuable insights and support decision-making processes. Enhancing the user interface and overall user experience based on feedback from both technical and non-technical users. Regularly reviewing and updating the system documentation to keep it aligned with the evolving requirements and changes in the system.

Use Case Diagram Class Diagram