Lecture 4
Lecture 4
1|Page
-Codd’s rules
The database must be in relational form. So that the system can handle the
database through its relational capabilitie
2|Page
A database contains various information, and this information must be stored
in each cell of a table in the form of rows and columns
Every single or precise data (atomic value) may be accessed logically from a
relational database using the combination of primary key value, table name,
and column name
This rule defines the systematic treatment of Null values in database records.
The null value has various meanings in the database, like missing the data,
no value in a cell, inappropriate information, unknown data and the primary
key should not be null
It represents the entire logical structure of the descriptive database that must
be stored online and is known as a database dictionary. It authorizes users to
access the database and implement a similar query language to access the
database
All views table can be theoretically updated and must be practically updated
by the database systems.
3|Page
A database system should follow high-level relational operations such as
insert, update, and delete in each level or a single row. It also supports
union, intersection and minus operation in the database system
4|Page
The non-submersion rule defines RDBMS as a SQL language to store and
manipulate the data in the database. If a system has a low-level or separate
language other than SQL to access the database system, it should not subvert
or bypass integrity to transform data
-Introduction to UML
What is UML?
Unified Modeling Language (UML) is a standardized visual modeling
language used in the field of software engineering to provide a general-
purpose, developmental, and intuitive way to visualize the design of a
system. UML helps in specifying, visualizing, constructing, and
documenting the artifacts of software systems.
5|Page
Steps to create UML Diagrams
-INTEGRITY RULES
1-ENTITY INTEGRITY
All primary key entries are unique, and no part of primary key may
be null. Each row will have a unique identity, and foreign key values
can properly reference primary key values, for example... No invoice
can have a duplicate number, nor can it be null. In short, all invoices
are uniquely identified by their invoice number.
2-REFERENTIAL INTEGRITY
A foreign key may have either a null entry, as long as it is not a part
of its table's primary key, or an entry that matches the primary key
6|Page
value in a table to which it is related.(every non –null foreign key
value must reference an existing primary key value).It is possible for
an attribute not to have corresponding value, but it will be impossible
to have an invalid entry. for example, A Customer might not yet have
an assigned sales representative(number),but it will be impossible to
have an invalid sales representative(number).
To avoid nulls, some designers use special codes, known as flags, to indicate
the absence of some value.
7|Page