Docsity

Database Design and Development: Understanding Relational Databases and Normalization, Lecture notes of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
Database design and development|2022
ASSIGNMENT COVER SHEET
STUDENT DETAILS
Student ID
Reg No.
Family Name
Baniya
Given Name
Enrolment Year
2022
Section
c
Semester
1st
Email
UNIT DETAILS
Unit Title
Database Design &
Development Systems
Unit Code
H/615/1622
Assessor Name
Bikul Raj Koirala
Issued Date
03 November
2022
Assignment
Title
Vehicles Management System
Assignment No
1
Submission Date
31 December
2022
Qualification
Campus
ISMT
INTERNATIONAL SCHOOL OF
MANAGEMENT & TECHNOLOGY
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48

Partial preview of the text

Download Database Design and Development: Understanding Relational Databases and Normalization and more Lecture notes Computer Systems Networking and Telecommunications in PDF only on Docsity!

Database design and development|

ASSIGNMENT COVER SHEET

STUDENT DETAILS

Student ID Reg No.

Family Name Baniya Given Name supriya

Enrolment Year 2022 Section c

Semester 1 st^ Email [email protected]

UNIT DETAILS

Unit Title Database Design &

Development Systems

Unit Code H/615/

Assessor Name Bikul Raj Koirala Issued Date 03 November

Assignment

Title

Vehicles Management System

Assignment No 1 Submission Date 31 December

Qualification Campus ISMT

INTERNATIONAL SCHOOL OF

MANAGEMENT & TECHNOLOGY

STUDENT ASSESSMENT SUBMISSION AND

DECLARATION

When submitting evidence for assessment, each student must sign a declaration confirming that the work is their own. Student Name Supriya Baniya Assessor Name Bikul Raj Koirala Issue Date 03 November 2022 Submission Date 31 December 2022 Programmer BTEC HND in Computing Unit Name Database Design & Development Assignment Title Vehicles Management System Plagiarism Plagiarism is a particular form of cheating. Plagiarism must be avoided at all costs and students who break the rules, however innocently, may be penalized. It is your responsibility to ensure that you understand correct referencing practices. As a university-level student, you are expected to use appropriate references throughout and keep carefully detailed notes of all your sources of materials for the material you have used in your work, including any material downloaded from the Internet. Please consult the relevant unit lecturer or your course tutor if you need any further advice. Student Declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student signature: Date: Pearson Education 2018 Higher Education Qualifications

Table of Contents

Article I. Activity 1

You have been asked to produce a report for the CEO of the given company on the design of a database system. The report should contain a comprehensive design for a fully functional system, including interface and output designs, data validations and cover data normalization. It should have concise descriptions of user and system requirements and at least four related tables.

Introduction

A database is a group of connected data that simulates a certain aspect of reality. The Database system has been created to be developed and filled with information for a specific activity. It is a structured collection of data that is often kept electronically in a computer system. A database is a set of data stored in a computer. This data is usually structured in a way that makes data easily accessible. A database management system (RDBMS) is a set of software and features that enables IT teams to design, maintain, & connect to relational databases. The majority of commercial database management systems use Structured Query Language (SQL) to access the database. SQL is not required for RDBMS use because it was created after the relational paradigm was first developed. (Chamberlin, 1976). Potential consumers outside the conventional fields in which such systems have been used are very interested in relational database systems. In applications like engineering design, office automation, and graphics, features of current relational systems include extensive query facilities, information, and resource independence (Roger L. Haskin IBM Research Laboratory et al., 1982).

Types of database management systems are:

(a) Hierarchical databases A hierarchical database is a data model in which the data are arranged in a tree-like form. Records containing the information are connected to one another through links. In a hierarchical model, data are viewed as a collection of tables, or tables that form a hierarchical relation.

(b) Network database Database that is arranged according to record ownership, allowing for various owners for the same record and therefore offering numerous access points to the data. The hierarchical database model was replaced by the network database model, which was created to address some of its shortcomings, particularly its lack of flexibility. (c) Object-oriented database The term "object-oriented databases" (OODB) refers to databases that store data as objects and classes. An object is a key item in an object-oriented language, while a class is a group of objects. The basic tenets of object-oriented programming are adhered to by object- oriented databases (OOP). (d) Relational database A relational database is a type of database that employs a structure that enables us to locate and retrieve data in connection to other database elements. Tables are frequently used in relational databases to arrange data. RDBMS allows us to create, edit, and manage relational databases. The SQL language is mostly used by relational database management systems to access databases.

Properties of a Relational database:

o Each relation has a unique name by which it is identified in the database. o Relation does not contain duplicate tuples. o The tuples of a relation have no specific order.

Uses of DBMS

It is frequently used across a broad range of industries including banking, transportation, higher education, human resources, manufacturing, and retail. Some of the characteristics are: ❖ Controls data redundancy ❖ Enforces user-defined rules ❖ Ensures data sharing ❖ It has automatic and intelligent backup and recovery procedure

Figure 1 : XAMPP Logo, visual studio, php my admin

Programming languages

An artificial language called a programming language is used to direct how a machine, especially a computer, behaves. Syntactic and semantic principles are used to design programming languages, just as human languages, to specify their structure and meaning, respectively. Programming languages are tools used by computer programmers to create software programs, scripts, and other sets of instructions for computers to follow. Some authors only consider a language to be a "programming language" if it can express every feasible algorithm; other times, the term "computer language" is used to refer to artificial languages with fewer capabilities. There are different types of programming languages they are: (a) MY SOL: Based on structured query language, MySQL is a relational database management system (RDBMS) created by Oracle (SQL). One of the most well-known RDBMS software brands is MySQL, which uses a client-server architecture. MySQL is a tool used to manage databases and servers, so while it’s not a database, it’s widely used in relation to managing and organizing data (B., 2022).

Figure 2 : MY SQL Logo (b) HTML: The structure of web pages is specified by the markup language HTML, or Hypertext Markup Language. It is essential to learn if you want to pursue a career in web development because it is one of the most fundamental building elements of every website. Figure 3 : HTML Logo (c) CSS: The language used to describe how Web pages are presented, including their colors, design, and fonts, is called CSS. It enables the presentation to be adjusted for use on many sorts of devices, including printers, tiny displays, and huge screens. CSS may be used with any XML-based markup language and is not dependent on HTML. CSS Syntax : h1 { color: red; font-size: 5em; }

(b) RELATIONAL Diagram: Relational datasets—datasets in which each individual is characterized by both their own qualities and their relationships to other individual people from a wide range of sources, including relational and object-oriented databases, knowledge bases, and software models like UML class diagrams (Huchard et al., 2007). (c) Attributes A property or characteristic of an entity. Often shown as an oval or circle. Attributes are categorized as simple, composite, derived, as well as single-value or multi-value. It belongs to the entity, in other terms. Attributes act as a representation of the most important database information. Figure 6 : ER DIAGRAM The ER diagram shown above illustrates the connection between the entity sets. An entity set is a group of similar entities that share attributes. By showing the relationship between the tables and

attributes and, in terms of DBMS, an entity set is a table in the database, the ER diagram illustrates the whole logical structure of the database. In the above diagram, we have 5 entities (branch, vehicle, employee, customers and colors) which has their own relationships. Each entity contains multiple attributes. The relationship between vehicle and color is many-to-many because many suppliers can use different colors. Hence, the ER diagram shows the logical flow or the structure of an Inventory Management System. In the above designed ER diagram, the Customer entity where it has all the information required of a customer like, Name, Address, Number can be saved. In the entity vechicle, the detail of vehicle which is placed by customer such as vech_id , vech_number and total amount can be saved.

UML DIAGRAM (Unified Modeling Language)

The process of graphically displaying a system's primary players, functions, activities, objects, or classes in order to better comprehend, modify, preserve, or record information about the system. Today, UML diagrams are also utilized for project and process management. It supports the creation, construction, and documentation of new software systems and designs by software engineers. A UML diagram is most frequently used to prioritize software development, assess current software, and model new software. Simply defined, a UML diagram is quite beneficial if you need a way to visualize and organize your software development process (MiroBlog, 2022). (a) Class diagram The class diagram is a UML diagram that can be directly mapped with object-oriented languages. It represents the static view of an application. Because they are the only UML diagrams that can directly map with OO languages, class diagrams are frequently employed in the modeling of systems. (Herchi & Abdessalem, 2012). (i) Purpose of Class Diagrams

  • Analysis and design of the static view of an application.
  • Describe the responsibilities of a system.
  • Base for component and deployment diagrams.

Figure 8 : ACTIVITY DIAGRAM (c) Schema diagram A schema diagram is a visual representation of the elements and attributes that make up the schema. The database design is only visible in a schema diagram. The database's real data is not displayed. The schema may consist of only one table or may have several connected tables. A database schema, along with primary key and foreign key dependencies, can be depicted by schema diagrams (padakuu.com, n.d.).

Figure 9 : SCHEMA DIAGRAM The schema diagram for the Toyota company is shown in the picture. Each relation is shown as a box, with the relation name in blue at the top and the characteristics listed inside. The highlighted primary key properties are displayed. Foreign key dependencies show up as arrows connecting the main key of the referred relation to the foreign key properties of the referring relation.

DATA Validation:

Data validation is the process of making sure that data has been cleaned up to ensure data quality, which means that they are accurate and valuable. Whether you're collecting data on the field, analyzing the data, or getting ready to deliver the data to stakeholders, data validation is an important factor of every data handling process. Your results won't be accurate if your data is inaccurate from the start. For this reason, data must be verified and validated before use (Kupzyk & Cohen, 2014).

NORMALIZATION:

Normalization or database normalization is the process of structuring a relational database in accordance with a series of so-called normal forms in order to reduce data redundancy and improve data integrity. It may have the effect of duplicating data within the database and often results in the creation of additional tables for each row or column. (Rouse & Vaughan, 2019). Some of the benefits of normalization are:

  1. It specifies how the data fields are interdependent.
  2. It reduces the amount of redundant data.
  3. The system's data structure has been made simpler.
  4. Data models are easier to manage and more adaptable.
  5. It improves the system's performance.
  6. It enhances index building and sorting.

Types of normalization are:

  1. First Normal Form (1NF)
  2. Second Normal Form (2NF)
  3. Third Normal Form (3NF) First Normalization Form: When a relation has a composite or multi-valued property, it deviates from the first normal form; otherwise, the connection is in the first normal form. If all of the attributes in a relation are solitary valued attributes, the connection is said to be in first normal form. Every attribute in the table must be unique and a separate table must be created for the set of related data (Abiteboul and Bidoit, 1984). The fundamental rules are:
  • There are only Single Valued Attributes.
  • Attribute Domain does not change.
  • There is a unique name for every Attribute/Column.
  • The order in which data is stored does not matter. cust_name cust_email cust_phone cust_address purchase_date vec_name colors

Anurag [email protected] 9875838972 Bhaktapur 04/16/202 1 Toyota 86 black Crete [email protected] 9874638923 Chitwan 07/22/2022 Avalon Red Yubraj [email protected] 9867224562 Pokhara 04/16/2021 Toyota 86 silver Tenisha [email protected] 9846512523 Palpa 02/30/2020 Corolla/ Avalon blue/ White Ruhan [email protected] 9811565321 9845625251 9811565321 Kathmandu 08/13/202 1 03/02/ 06/02/

  • Sienna/ Corolla/ Toyota 86 Black/ White/ blue Arranging according to the First normalization cust_name cust_email cust_phone cust_address purchase_date vec_name colors Anurag [email protected] 9875838972 Bhaktapur 04/16/2022 Toyota 86 black Crete [email protected] 9874638923 Chitwan 07/22/2022 Avalon Red Yubraj [email protected] 9867224562 Pokhara 04/16/2021 Toyota 86 Silver Tenisha [email protected] 9846512523 Palpa 01/28/2020 Avalon White Tenisha [email protected] 9846512523 Palpa 02/30/2020 Corolla blue Ruhan [email protected] 9834896517 Kathmandu 03/02/20 Corolla White Ruhan [email protected] 9811565321 Kathmandu 08/13/2020 • Sienna Black Ruhan [email protected] 9834896517 Kathmandu 06/02/2020 • Toyota 86 blue