Docsity

Database Design and Development (1622) - ASM 1 - PASS, Assignments of Developmental Psychology

Partial preview of the text

Download Database Design and Development (1622) - ASM 1 - PASS and more Assignments Developmental Psychology in PDF only on Docsity!

Higher Nationals in Computing

Unit 04: Database Design and

Development

ASSIGNMENT 1

Learner’s name: Phan Vũ Phương Anh

ID: GCS

Class: GCS0905C

Subject code: 1622

Assessor name: PHAN MINH TAM

Assignment due: Assignment submitted:

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date: Signature & Date:

Assignment Brief 1 (RQF)

Higher National Certificate/Diploma in Computing

Student Name/ID Number: Unit Number and Title: Unit 04: Database Design & Development Academic Year: 2022 Unit Assessor: Phan Minh Tam Assignment Title: Database design Issue Date: 18 Jan 2022 Submission Date: Internal Verifier Name: Date: Submission Format: Format: ● 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. Submission ● Students are compulsory to submit the assignment in due date and in a way requested by the Tutor. ● The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/. ● Remember to convert the word file into PDF file before the submission on CMS. Note: ● The individual Assignment must be your own work, and not copied by or from another student. ● If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style. ● Make sure that you understand and follow the guidelines to avoid plagiarism. Failure to comply this requirement will result in a failed assignment.

Learning Outcomes and Assessment Criteria (Assignment 1): Learning Outcome Pass Merit Distinction LO1 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. M1 Produce a comprehensive design for a fully functional system which includes interface and output designs, data validations and data normalisation. D1 Assess the effectiveness of the design in relation to user and system requirements.

Table of Contents

  • least four interrelated tables, with clear statements of user and system requirements: ....................... P1. Design a relational database system using appropriate design tools and techniques, containing at
      1. Introduction to database:
      • 1.1. What is the database?.............................................................................................................
      • 1.2. Types of database:...................................................................................................................
      1. Introduction to RDBMSs: ................................................................................................................
      • 2.1. What is the RDBMSs:...............................................................................................................
      • 2.2. Popular RDBMSs:...................................................................................................................
        • 2.3. Select the specific RDBMS apply to given scenario:..............................................................
      1. Database Design based on the scenario:
      • 3.1. Analyse the requirement:......................................................................................................
      • 3.2. Logical Design:.......................................................................................................................
      • 3.3. Physical Design:.....................................................................................................................

1.1. What is the database? A database, in the most general sense, is an organized collection of data. More specifically, a database is an electronic system that allows data to be easily accessed, manipulated and updated. In other words, a database is used by an organization as an electronic way to store, manage and retrieve information. The database is one of the cornerstones of enterprise IT, and its ability to organize, process and manage information in a structured and controlled manner is the key to many aspects of modern business efficiency. However, databases go way beyond simply storing data. As we’ll see later, the inherent logic and efficiency in how the data is stored and retrieved can provide an incredibly powerful business tool to an organization. This is especially true when databases are properly exploited for their reporting and business intelligence capabilities. 1.2. Types of database: There are various types of databases used for storing different varieties of data: Page | 2

❖ Centralized Database: It is the type of database that stores data at a centralized database system. It comforts the users to access the stored data from different locations through several applications. These applications contain the authentication process to let users access data securely. An example of a Centralized database can be the Central Library that carries a central database of each library in a college/university. Advantages of Centralized Database: ● It has decreased the risk of data management, i.e., manipulation of data will not affect the core data. ● Data consistency is maintained as it manages data in a central repository. ● It provides better data quality, which enables organizations to establish data standards. ● It is less costly because fewer vendors are required to handle the data sets. Disadvantages of Centralized Database: ● The size of the centralized database is large, which increases the response time for fetching the data. ● It is not easy to update such an extensive database system. ● If any server failure occurs, entire data will be lost, which could be a huge loss. Page | 3

❖ Relational Database: This database is based on the relational data model, which stores data in the form of rows(tuple) and columns(attributes), and together forms a table(relation). A relational database uses SQL for storing, manipulating, as well as maintaining the data. E.F. Codd invented the database in 1970. Each table in the database carries a key that makes the data unique from others. Properties of Relational Database: There are following four commonly known properties of a relational model known as ACID properties, where: ● A means Atomicity: This ensures the data operation will complete either with success or with failure. It follows the 'all or nothing' strategy. For example, a transaction will either be committed or will abort. ● C means Consistency: If we perform any operation over the data, its value before and after the operation should be preserved. For example, the account balance before and after the transaction should be correct, i.e., it should remain conserved. ● I means Isolation: There can be concurrent users accessing data at the same time from the database. Thus, isolation between the data should remain isolated. For example, when multiple transactions occur at the same time, one transaction effect should not be visible to the other transactions in the database. ● D means Durability: It ensures that once it completes the operation and commits the data, data changes should remain permanent. Page | 5

❖ NoSQL Database: No-SQL/Not Only SQL is a type of database that is used for storing a wide range of data sets. It is not a relational database as it stores data not only in tabular form but in several different ways. It came into existence when the demand for building modern applications increased. Thus, NoSQL presented a wide variety of database technologies in response to the demands. We can further divide a NoSQL database into the following four types: ● Key-value storage: It is the simplest type of database storage where it stores every single item as a key (or attribute name) holding its value, together. ● Document-oriented Database: A type of database used to store data as JSON-like documents. It helps developers in storing data by using the same document-model format as used in the application code. ● Graph Databases: It is used for storing vast amounts of data in a graph-like structure. Most commonly, social networking websites use the graph database. ● Wide-column stores: It is similar to the data represented in relational databases. Here, data is stored in large columns together, instead of stored in rows. Page | 6

❖ Network Databases: It is the database that typically follows the network data model. Here, the representation of data is in the form of nodes connected via links between them. Unlike the hierarchical database, it allows each record to have multiple children and parent nodes to form a generalized graph structure.

  1. Introduction to RDBMSs: 2.1. What is the RDBMSs: Stands for "Relational Database Management System." An RDBMS is a DBMS designed specifically for relational databases. Therefore, RDBMSes are a subset of DBMSes. A relational database refers to a database that stores data in a structured format, using rows and columns. This makes it easy to locate and access specific values within the database. It is "relational" because the values within each table are related to each other. Tables may also be related to other tables. The relational structure makes it possible to run queries across multiple tables at once. Page | 8

While a relational database describes the type of database and RDBMS manages, the RDBMS refers to the database program itself. It is the software that executes queries on the data, including adding, updating, and searching for values. An RDBMS may also provide a visual representation of the data. For example, it may display data in tables like a spreadsheet, allowing you to view and even edit individual values in the table. Some RDBMS programs allow you to create forms that can streamline entering, editing, and deleting data. Most well known DBMS applications fall into the RDBMS category. Examples include Oracle Database, MySQL, Microsoft SQL Server, and IBM DB2. Some of these programs support non-relational databases, but they are primarily used for relational database management. Examples of non-relational databases include Apache HBase, IBM Domino, and Oracle NoSQL Database. These types of databases are managed by other DBMS programs that support NoSQL, which do not fall into the RDBMS category. Page | 9

a database server (MySQL) and arbitrarily many clients (application programs), which communicate with the server; that is, they can query data, save changes, etc. ● Free to download: MySQL is free to use so that we can download it from MySQL official website without any cost. Advantages of MySQL: ● Reduced Total Cost of Ownership: MySql is one of the most popular open source database management systems that allows you to manage relational databases. ● Portability: MySQL is a cross platform database server. It can run on different platforms like Linux,Solaris and Windows etc. ● Seamless Connectivity: There are various secure and seamless connection mechanisms available in order to connect with MySQL server. These connections include named pipes, TCP/IP sockets and UNIX Sockets. ● Rapid Development and Round-the-Clock Uptime: MySQL comes with the assurance of 24x uptime and offers a wide range of high-availability solutions, including specialized cluster servers and master/slave replication configurations. ● Data Security: MySQL is globally recognized as the most secure and reliable database management system used in popular web applications including WordPress, Drupal, Joomla, Facebook and Twitter. Disadvantages of MySQL: MySQL database server has its disadvantages. Some of these disadvantages have been explained below. ● MySQL lower version (5.0 or less) doesn't support ROLE, COMMIT and stored procedure. ● MySQL does not support a very large database size as efficiently. ● MySQL doesn't handle transactions very efficiently and it is prone to data corruption. ● MySQL doesn't have a good development and debugging tool compared to other databases. ● MySQL doesn't support SQL check constraints. Page | 11

❖ Oracle:

Introductions:

Oracle database is a relational database management system. It is also called OracleDB, or simply Oracle. It is produced and marketed by Oracle Corporation. It was created in 1977 by Lawrence Ellison and other engineers. It is one of the most popular relational database engines in the IT market for storing, organizing, and retrieving data. Oracle database was the first DB that was designed for enterprise grid computing and data warehousing. Enterprise grid computing provides the most flexible and cost-effective way to manage information and applications. It uses SQL queries as a language for interacting with the database. Features of Oracle: Oracle database manages data with the help of an open, complete, and integrated approach. The following are features that complete the demand for powerful database management: Page | 12