Docsity

Assignment 1 1622 Database design and development, Assignments of Computer Science

Partial preview of the text

Download Assignment 1 1622 Database design and development and more Assignments Computer Science in PDF only on Docsity!

Higher Nationals in Computing

Unit 04: Database Design and Development

ASSIGNMENT 1

Learner’s name: Tran Quang Hien

ID: GCS

Class: GCS1003A

Subject code: 1622

Assessor name: NGUYEN TUAN DANG

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: Tran Quang Hien/GCS Unit Number and Title: Unit 04: Database Design & Development Academic Year: 2022 Unit Assessor: Nguyen Tuan Dang Assignment Title: Database design Issue Date: 6 June 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.

Your manager would like on the report your assessment of the effectiveness of the design in relation to user and system requirements.

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.

ASSIGNMENT 1 ANSWERS

I. 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. (P1)

1. Introduction to database In a small company, network administrators or developers may also be database administrators (DBAs). Larger companies may have dozens of DBAs who specialize in everything from design and architecture to maintenance and development. It doesn't matter what part of IT you work in, you'll have to store data at some point, and having a basic understanding of databases and how they work is beneficial to almost everyone. This instructional exercise will most likely provide you with a basic understanding of the subject. We'll go over the fundamentals of what a data set is, the historical context of data sets, social data sets, key concepts from segments to lines, different types of data sets, additional concepts to grasp, and a quick overview of the major business frameworks available today. Generally, there are no essentials to this instructional exercise other than fundamental computing knowledge. 1.1 What is the database? A database, in the broadest sense, is a coordinated assortment of information. All the more explicitly, a data set is an electronic framework that permits information to be effectively gotten to, controlled, and refreshed. All in all, a database is involved by an association as an electronic method for putting away, overseeing, and recovering data. The data set is one of the foundations of big business IT, and its capacity to coordinate, process, and oversee data in an organized and controlled way is the way to numerous parts of present-day business productivity. Notwithstanding, databases go far past just putting away information. As we'll see later, the intrinsic rationale and proficiency in how the information is put away and recovered can give a staggeringly strong business apparatus to an association. This is particularly evident when data sets are appropriately taken advantage of for their detailing and business insight capacities.
1.2 Types of database There are different types of databases utilized for putting away various assortments of information: Figure 1: Types of Database Source: https://www.javatpoint.com/types-of-databases

1.2.1 Centralized Database The kind of database stores information in a concentrated data set framework. It comforts the clients to get to put-away information from various areas through a few applications. These applications contain the validation interaction to allow clients to get to information safely. An illustration of a Centralized data set can be the Central Library which conveys a focal data set of every library in a college. Advantages of Centralized Database

  • It has reduced the risk of data management by ensuring that data manipulation has no impact on the core data.
  • It manages data in a central repository, which ensures data consistency.
  • It helps organizations establish data standards by improving data quality.
  • It is less expensive because the data sets are handled by fewer vendors. Disadvantages of Centralized Database
  • The centralized database has a large size, which slows down data retrieval.
  • Keeping such a large database system up to date is difficult.
  • Any server failure will result in the loss of all data, which could be a significant loss. 1.2.2 Distributed Database As opposed to a unified database system, information in disseminated frameworks is spread across numerous data set frameworks inside an organization. Communication links link these database systems together. End-users can easily access data with the help of such links. Apache Cassandra and HBase are two examples of distributed databases. A distributed database system can be further divided into: - Homogeneous DDB : Database systems that use the same operating system, application process, and hardware devices. - Heterogeneous DDB : Database systems that run on a variety of operating systems and use a variety of hardware devices. Advantages of Distributed Database
  • A distributed database allows for modular development, which means the system can be expanded by adding new computers and connecting them to the distributed database.
  • The data set will not be impacted if one server fails. Disadvantages of Distributed Database:
  • In a distributed database system, guaranteeing information straightforwardness and coordination across various destinations frequently requires the utilization of costly programming.
  • When database replication is used, many operations across multiple sites necessitate numerous calculations and constant synchronization, resulting in significant processing overhead.
  • Data integrity may be jeopardized when using database replication because data is updated at

It gives high versatility.

  • Clients can rapidly get information from the database through key-esteem. 1.2.5 Cloud Database A kind of database where information is put away in a virtual climate and executed over the distributed computing stage. It furnishes clients with different distributed computing administrations (SaaS, PaaS, IaaS, and so on) for getting to the information base. There are various cloud stages, however, the most ideal choices are:
  • Amazon Web Services(AWS)
  • Microsoft Azure
  • Kamatera
  • PhonixNAP
  • ScienceSoft
  • Google Cloud SQL 1.2.6 Object-oriented Databases This kind of database utilizes the item-based information model methodology for putting away information in the data set framework. The data is organized and stored as items, similar to the articles used in the item-based programming language. 1.2.7 Hierarchical Databases This kind of database stores information as parent-youngsters relationship hubs. Here, it puts together information in a tree-like design. Figure 2: Hierarchical Databases Source: https://www.javatpoint.com/types-of-databases 1.2.8 Network Databases The database normally follows the organization information model. Here, the portrayal of information is as hubs associated through joins between them. Dissimilar to the various leveled information base, it permits each record to have numerous youngsters and parent hubs to shape a summed-up diagram structure. 1.2.9 Personal Database Gathering and putting away information on the client's framework characterizes a Personal Database. This database is fundamentally intended for a solitary client.

Advantages of Personal Database

  • It is basic and simple to deal with.
  • It consumes less extra room as it is little in size. 1.2.10 Operational Database This kind of database makes and updates the data set progressively. It is fundamentally intended for executing and taking care of the day-to-day information activities in a few organizations. For instance, An association involves functional information bases for overseeing each day's exchanges. 1.2.11 Enterprise Database Huge organizations or enterprises utilize this database for dealing with a gigantic measure of information. It assists organizations with expanding and working on their effectiveness. Such a database permits concurrent admittance to clients. Advantages of Enterprise Database:
  • Multi processes are legitimate over the Enterprise database.
  • It permits executing equal inquiries on the framework. 2. Introduction to RDBMSs 2.1 What is the RDBMSs: "Relational Database Management System" is an acronym for "Relational Database Management System." A relational database management system, or RDBMS, is a database management system designed specifically for relational databases. RDBMSes are thus a subset of DBMSes. A relational database is one that uses rows and columns to store data in a structured format. This makes finding and accessing specific values within the database a breeze. Since the qualities in each table are connected with each other, it is classified as "social." Tables can likewise be connected to each other. Because of the relational structure, queries can be run on multiple tables at the same time. Figure 3: RDBMS structure Source: https://commons.wikimedia.org/wiki/File:RDBMS_structure.png While a relational database portrays the type of database and RDBMS makes due, the RDBMS alludes to the database program itself. The product executes questions on the data, including adding, refreshing, and looking for values. A RDBMS may similarly give a visual depiction of the data.

Client-Server Architecture: MySQL follows the working of a client/server architecture. There is a database server (MySQL) and arbitrarily numerous clients (application programs), which speak with the server; that is, they can question information, and save changes.

  • Free to download: MySQL is free to use so we can download it from MySQL's official website without any expense. Advantages of MySQL
  • Reduced Total Cost of Ownership: MySQL is one of the most famous open-source data set administration frameworks that permit you to oversee social information bases.
  • Portability: MySQL is a cross-stage information base server. It can run on various stages like Linux, Solaris, Windows, and so forth.
  • Seamless Connectivity: There are different secure and seamless association systems accessible to interface with the MySQL server. These associations incorporate named pipes, TCP/IP attachments, and UNIX Sockets.
  • Rapid Development and Round-the-Clock Uptime: MySQL accompanies the confirmation of 24x7 uptime and offers an extensive variety of high-accessibility arrangements, including specific group servers and expert/slave replication designs.
  • Data Security: MySQL is around the world perceived as the most dependable and solid database the board framework utilized in famous web applications including WordPress, Drupal, Joomla, Facebook, and Twitter. 2.2.3 Disadvantages of MySQL MySQL database server has its hindrances. A portion of these hindrances has been made sense of beneath.
  • MySQL lower rendition (5.0 or less) doesn't uphold ROLE, COMMIT and put away methodology.
  • MySQL isn't as efficient when it comes to dealing with extremely large databases.
  • MySQL doesn't deal with exchanges productively and it is inclined to information defilement.
  • MySQL doesn't have a decent turn of events and troubleshooting device contrasted with different databases.
  • MySQL doesn't uphold SQL really look at limitations. 2.2.2 Oracle Oracle database is a relational database management system. OracleDB, or simply Oracle, is another name for it. It is created and advertised by Oracle Corporation. It was made in 1977 by Lawrence Ellison and different specialists. It is one of the most well-known relational database motors in the IT market for putting away, coordinating, and recovering information. Oracle database was the main DB that was intended for big business matrix figuring and information warehousing. Endeavor lattice processing gives the most adaptable and savvy method for overseeing data and applications. It involves SQL questions as a language for collaborating with the database

Figure 5: ORACLE Source: https://commons.wikimedia.org/wiki/File:Oracle_Logo.svg Features of Oracle Figure 6: Oracle Features Source: https://www.javatpoint.com/what-is-oracle Oracle database manages data with the assistance of an open, complete, and incorporated approach. Coming up next are highlights that total the interest for a strong database of the executives:

  • Availability : It is never disconnected or inaccessible, implying that the database is available 24 hours a day, seven days a week. It gives high availability of information bases in view of the Oracle Data Guard usefulness. This usefulness permits the utilization of the optional information base as a duplicate of the essential data set during any disappointment. Thus, all ordinary cycles, for example, reinforcements and fractional disappointments don't intrude on the information base from being utilized.
  • Security : Oracle has a system for controlling and getting to the database to forestall unapproved access. Because of the Oracle Advanced Security features, it delivers a high level of security.. It offers two answers for safeguard databases that are TDE (Transparent Data Encryption) and Data Redaction. TDE upholds information encryption both at the source and after sending out. Redaction is performed at the application level. Oracle has some other security highlights like Oracle Database Vault controls client honors and Oracle Label Security.
  • Scalability : It includes features like RAC (Real Application Cluster) and Portability, which allow an Oracle database to scale up or down depending on use. It contains capabilities such as rolling instance migrations, conducting upgrades, ensuring application continuity, quality of service management, and more in a clustered environment.
  • Performance : Oracle gives performance improvement devices, for example, Oracle Advanced Compression, Oracle Database In-Memory, Oracle Real Application Testing, and Oracle TimesTen Application-Tier Database Cache. Their principal objective is to further develop framework performance to the most elevated conceivable level.
  • Analytics : Oracle has the accompanying arrangements in the field of analytics:

Features of Microsoft SQL Server

  • Accelerated Database Recovery (ADR).
  • Intelligent Query Processing Enhancements.
  • Memory-optimized Tempdb metadata.
  • Query Store custom capture policies.
  • Always Encrypted with secure enclaves. Advantages of Microsoft SQL Server
  • Increases data security: One of the basic roles of Microsoft SQL Server is guaranteeing the security of your database, particularly with a Microsoft SQL Server database administration service.
  • Ease of configuration: Unlike other databases the board software, the establishment and configuration of Microsoft SQL Server are more straightforward.
  • Optimized data storage: This permits you to oversee data effectively and productively with negligible investigating and support.
  • Data recovery support: For the situation of force interference or server closures, data might become debased. Microsoft SQL Server kills the gamble of losing data by having highlights for data recovery and reclamation. Disadvantages of Microsoft SQL Server
  • Restricted compatibility: Making extra interest in Microsoft programming might be required assuming that your business utilizes practically no Microsoft foundation. These additional responsibilities could likewise cost your organization more, however, they will permit you to utilize Microsoft SQL Server on your foundation.
  • Hardware restrictions: Newer adaptations of Microsoft SQL Server need cutting-edge innovations to run. Thus, in the event that your hardware comprises for the most part of more seasoned hardware, you could have to put resources into fresher machines to utilize Microsoft SQL Server. Besides, on the off chance that your business needs a bigger database, you likewise need to expand your hard drive space.
  • Cost: There is a free rendition of Microsoft SQL Server that you can utilize. Yet, for further developed database applications and elements, you should make sizable speculation for higher variants of the product. 2.2.4 PostgreSQL PostgreSQL is an open-source database system that is designed for corporate use. It upholds both SQL and JSON for relational and non-relational questions for extensibility and SQL consistency. PostgreSQL upholds progressed data types and execution improvement features, which are just accessible in costly business databases, similar to Oracle and SQL Server. It is otherwise called Postgres. It is supported by an accomplished local area of engineers who have made enormous commitments to make it a profoundly solid DBMS system. Figure 8: PostgreSQL Source: https://www.ovhcloud.com/asia/public-cloud/postgresql/

Features of PostgreSQL

  • Assists engineers with building applications.
  • Viable with different stages utilizing every significant language and middleware.
  • It offers the most refined locking system.
  • Support for multi-adaptation simultaneousness control.
  • Mature Server-Side Programming Functionality.
  • It permits managers to fabricate a fault-tolerant climate by safeguarding information uprightness. Advantages of PostgreSQL
  • PostgreSQL can run dynamic sites and web applications as a LAMP stack choice.
  • PostgreSQL's write-ahead logging makes it a profoundly issue lenient data set.
  • PostgreSQL source code is unreservedly accessible under an open-source permit. This allows you the opportunity to utilize, adjust, and execute it as the need might arise.
  • PostgreSQL upholds geographic articles so you can involve it for area-based administrations and geographic data frameworks.
  • PostgreSQL upholds geographic articles so it very well may be utilized as a geospatial information store for area-based administrations and geographic data frameworks.
  • To learn Postgres, you don't require a lot preparing as it's not difficult to utilize.
  • Low maintenance and administration for both installed and undertaking utilization of PostgreSQL. Disadvantages of PostgreSQL
  • Postgres isn't claimed by one association. Along these lines, it experiences experienced issues getting its name out there regardless of being completely included and tantamount to other DBMS frameworks
  • Changes made for speed improvement require more work than MySQL as PostgreSQL centers around similarity
  • Many open source applications support MySQL, however, may not help PostgreSQL
  • On execution measurements, it is slower than MySQL. 2.2.5 MongoDB MongoDB is a document-oriented NoSQL database utilized for high volume information capacity. Rather than involving tables and columns as in the conventional relational databases, MongoDB utilizes assortments and documents. Documents comprise key-esteem matches which are the essential unit of information in MongoDB. Assortments contain sets of documents and capacities which is what could be compared to relational database tables. MongoDB is a database that came to light around the mid-2000s. Figure 9: MongoDB Source: https://www.mongodb.com/ Features of MongoDB