Assignment DATA
Assignment DATA
P1: Design a relational database system using an appropriate design tools and techniques,
containing at least four tables, with clear statements of user and system requirement.
Introduction:
In this task I am going to design a relational database system using an appropriate design, tools
and techniques, containing at least four tables with a justification of the design for the users and
the system.
Database design
Database design is a fundamental component of an information system. In database design, the
data are represent using two dimensional tables called relation which are made up of columns
and columns. Database is a collection of related data information that is stored in a computer
system. Database design is a popular way of organizing data for a business-oriented system
because of the flexibility. To design database to design the database there are a lot of tools like
Edraw Max, PhpMyAdmin it is she dot. So here are some major tools available.
Edraw Max
Edraw Max is one of the best tools for building a home plan and designing engineering
communications. Edraw Max is a versatile graphics software. With which we can make
professional-looking flowcharts, org charts, network diagrams, business charts, building plans,
mind maps, workflows, software chart and more (Anon., 2004).
Fig 1: Home page of Edraw max
In the above ER diagram, square represent the entities, diamond represent the relationship
between these entities, eclipse shows the attributes of the entities and line represent the links and
primary key. The index for the above ER diagram is shown in the figure below.
Entities =
Attributes =
Relationship =
Database =
links/primary key=
The above relationship diagram of tables shows the full information of the relational database
system of the College management System. It shows that there is total five tables which are
interconnected to each other.
a) One-to-one Relationship
It is the type of relation where one record in one table matches with one and only
one record of another table. For example, one employee has one employee_id.
b) One-to-many Relationship
The type of relationship in which One substance of a set A can have an
association with different elements of another set B yet various elements of set B
can have an association with one and only one element of set A is a one-to-many
relationship. For example, a company has many employees.
Employee 1
Has
Has
Employee 3
c) Many-to-many Relationship
The type of relation in which many records in one table related to many records in
another table known as Many-to-many Relationship. For example, numerous
products have numerous orders.
.
Has
Products Orders
Data Dictionary:
Data dictionary is a structured place to keep details of the contents off data flow process and
datastore. It is all structured repository of data about data. It is a set of definition of all data flow
diagram elements. It helps to improve analyst and user communication. Here, I have created a
data dictionary of tables for college management System and are shown below:
Conclusion:
So, in this task, I have prepared homepage of Edrawmax, ER diagram, Data schema and
describe about them. I have also mentioned the relationship of Crow’s foot notation along with
the diagram. I have created and show data dictionary of tables for college management System.
Task 1
P2: Develop the database system with evidence of user interface, output and data
validations, and querying across multiple tables.
Introduction:
Here, for this task, I am going to implement all the tables by applying all the necessary
constraints and provide the evidence of the proposed database design with respect to user
interface, output and data validations. Similarly, I will explain necessary constraint required in
my designed database in brief.
Database:
Database is a collection of related data information that is stored in a computer system that
represent some real-world entities. A database is a shared collection of logically related data in a
systematic manner, that is stored to meet the requirements of different user of an organization,
that can easily be accessed managed and updated. Database is a place where related piece of
information is store and various operations can be performed on it. Database can be maintained
manually or through electronics devices such as mobile phones, computers, digital diaries, etc.
A database is a logically coherent collection of data with some inherent meaning. A database is
designed, built and populated with data for a specific purpose. A database represent some aspect
of the real world.
A Database Management System is a software (or a collection of programs) that enables users to
store, modify, and extract information from a database as per the requirements. DBMS is a tool,
that is used to perform any kind of operation on data in database. By using DBMS, we can
create, update, manage and retrieve the data. Typically, a database structure stores data in a
tabular form. One of the main functions of DBMS is to work as an interface between the
database that we created and the end users. Some DMBS examples are My SQL, Oracle, System
2000, MS Access, My SQL server, etc.
Database management system is a system, or it is a software, or I can say it is a collection of
programs that enables users or that allows users to create and maintain the database. the
functionality of database management system database management system allows users to
define the database to construct the database, manipulate and share the database. Construct the
database is the process of storing data on storage medium. Manipulate means querying the
database to retrieve specific data, updating database and generating reports. Share allows
multiple users and programs to access the database concurrently or simultaneously.
A DBMS can limit what data the end user sees, as well as how that end user can view the data,
providing many views of a single database schema. End users and software programs are free
from having to understand where the data is physically located or on what type of storage media
it resides because the DBMS handles all requests (Craig S. Mullins, 2005). Let’s look into an
illustration of database system environment.
User/Programmer
Database
system Application programs / Queries
DBMS
Software
Store DB Store
(Mega data) Database
SQL (Structured Query Language):
SQL is the standard language for accessing and manipulating database. All the Relational
Database Management System like my SQL, my excel, sybase, postgres and SQL Server uses
SQL as their standard database language. It executes queries against a database as well as
retrieve data from a database. It helps to inserts, update, delete and records in database. It helps
to create new tables, store procedures, views in database. SQL is a language that communicate
with database.
It is mostly used for web database development and management. SQL became the de facto
standard programming language for relational databases after they emerged in the late 1970s and
early 1980s. Also known as SQL databases, relational systems comprise a set of tables
containing data in rows and columns. Each column in a table corresponds to a category of data,
for example, customer name or address while each row contains a data value for the intersecting
column (Sirkin, 2005).
A central feature of SSMS is the Object Explorer, which allows the user to browse, select, and
act upon any of the objects within the server. It also shipped a separate Express edition that could
be freely downloaded, however recent versions of SSMS are fully capable of connecting to and
manage any SQL Server Express instance. Microsoft also incorporated backwards compatibility
for older versions of SQL Server thus allowing a newer version of SSMS to connect to older
versions of SQL Server instances. It also comes with Microsoft SQL Server Express 2012, or
users can download it separately.
Starting from version 11, the application was based on the Visual Studio 2010 shell,
using WPF for the user interface. Versions 18 and after are based on the Visual Studio
2017 Isolated Shell. In June 2015, Microsoft announced their intention to release future versions
of SSMS independently of SQL Server database engine releases.
Database Implementation:
The information base execution or arrangement is the cycle of establishment of data set
programming, setup and customization, running, testing, incorporating with applications, and
preparing the clients. This data set framework can record all the data and information identified
with school the board framework. Here is the entire cycle through which I had developed this
data set framework.
Creating a database:
For developing the database system at first, I create a new database ‘College Management
System’. Here is the query for creating this database.
TRUNCATE
It is used to delete all the rows from the table permanently. This command is same as
delete but truncate command does not generate any roll back data.
RENAME
It is used to rename an object and database table.
Example of DML
SELECT:
It is used to retrieve data from database.
INSERT:
It is used for inserting a data into table, you can add 1 or more into a single table.
UPDATE:
It modifies the record present in existing table.
DELETE:
It is used to delete some entire records from the existing table.
SQL joins:
SQL is a standard language which stands for structured Query language. Joins in sequel are
commands which are used to combine rows from two or more tables, based on a related column
between those tables.
b) Left Join:
The left join or the left outer join returns all the records from the left table and those
record which satisfy a condition from the right table. Also, the output or the result-set
will contain the NULL values. The figure shows the query that I have used to join the
tables with the help of left join.
c) Right Join:
The Right join or the right outer join return all the records from the right table and also
those records which a condition from the left table. Also, the records having no matching
values in the left table, the output or result contain the null values. The figure shows the
query that I have used to join the tables with the help of right join.
d) Full Join:
Full join or the full outer join return all those records which either have a match in the left
(Table 1) or the right (Table 2) table. The figure shows the query of the full join.
Conclusion:
So, in this task I have developed the database with the evidence of user interface and the outputs
as well as I have describe about the different joins needed in the application, I have also written
about the data validations and its use and what happens when the wrong value is kept in the field
with respective screenshots.
Task 2
P3: Implement a query language into the relational database system.
The Relational Database Management System (RDBMS) is a software application used to create,
manage and administer the Relational databases. The RDBMS is a type of Database management
system specially designed for creating and managing the relational databases.
Most commercial RDBMS use structured query language SQL to access the database, although
SQL was invented after the initial development of the relational model and is not necessary for
its use (Jack Vaughan, 2005). It is based on a relational model. The data in RDBMS is stored in
the form of a table so that the related data can be accessed in an easier and systematic way. Here
are the some of the implementation of SQL statements used in the relational database
management system.
Task 3
P4: Test the system against user and system requirements.
Introduction:
Database testing:
Database testing is retrieved values from the database by the web or desktop application. Data set
Testing is Important in programming testing since it guarantees information esteems and data got
and put away into data set are substantial or not. Data set testing assists with saving information
misfortune, saves cut short exchange information and no unapproved admittance to the data.
Data set is significant for any product application consequently analyzers should have great
information on SQL for data set testing Some of the steps to do database testing is given below:
Prepare the environment.
Run a test.
Check test result.
Validate according to the expected results.
Report the finding to the respective stakeholders.
Some of the tools used for database testing are:
Test Data Generator.
Data Generator.
Data factory.
Turbo Data.
SQL unit.
DB unit.
Software testing:
Software testing is the process of verifying and validating weather a software application or
product meets the business and technical requirements that guide its design and development.
Software testing is a process used to identify the correctness, completeness and the quality of
developed compute software. It includes a set of activities conducted with intent of finding errors
in software so that it could be corrected before the product is released to end users. Some
objectives of software testing include as;
Verify and validate the completeness of software product.
Check if product meets business technical requirement.
Identify technical bugs and ensure that software is glitch-free.
Principals of software testing are;
Detecting bugs.
Exhaustive testing is impossible.
Early testing.
Defect clustering.
Content Dependent.
Bug-free software is myth.
There are usually two types of software testing and they are;
a) White box testing:
White box testing is based on an analysis of the internal structure or component or
system. It is also known as clear box testing, gas box testing, transparent box testing and
structured box testing. It can be applied at all levels of SDLC. Most of the defects are
found in unit component and integration levels is through white box. Tests are based on
coverage of code stunts, branches, paths, conditions.
b) Black box testing:
Black box testing is the method of software testing that examines the functionality of an
application without looking into its internal structures or working. This method is applied
at every level of software testing; unit, integration, system and acceptance. Tests are based
on requirements and functionality.
Integration testing:
Integration testing is a level of software testing where individual units are combined and the
connectivity or data transfer between these unit is tested. The main aim of testing is to recognize
the interface between the modules. It makes sure to ensure modules work together properly.
Integration testing also help to uncover errors that lie in interface and ensures that newly added
components are not affected. Basically, there are three main integrating testing strategies given
below;
Top-Down Approach (TDA): Testing takes place from top to bottom, following the
control flow or architectural structure. It is extremely consistent and less time required as
well as fault localization is easier and defects major flaws.
Bottom-Up Approach (BUA): Testing takes place from bottom of the control flow,
upwards. Test condition are easier to create and product as application is efficient.
Big Bang Approach: All components or modules are integrated simultaneously, after
which everything is tested as a whole. As we know all the components are tested at once
so, it saves a lot of time and it is also convenient for small system.
References