Coded rule& data models
Coded rule& data models
The DB must be structured in a relational manner so that the system’s relational capabilities can
manage the DB.
A DB comprises a variety of data, which must be recorded in the form of columns and rows in each
and every cell of a table.
A relational DB’s primary key value, column name, and table name can be used to conceptually
retrieve any single or precise data (the atomic value).
The treatment of Null values in DB records is defined by this rule. No value in a cell, missing data,
unsuitable information, unknown data, the primary key that should not be null, etc., are all examples
of null values in DBs.
Rule 4: The Dynamic/Active Online Catalog on the basis of the Relational Model
The relational DB supports a variety of languages, and in order to access the DB, the language has to
be linear, explicit, or a well-defined syntax, character strings. It must support the following
operations: view definition, integrity constraints, data manipulation, data definition, as well as limit
transaction management. It is considered a DB violation if the DB permits access to the data and
information without the use of any language.
A view table can theoretically be updated, and DB systems must update them in practice.
Rule 7: The Relational Level Operation (or High-Level Insert, Delete, and Update) Rule
In each level or single row, a DB system should adhere to high-level relational operations (for
example, update, insert, and delete). The DB system also includes operations like intersection, union,
and minus.
To access a DB or an application, all stored data must be independent physically. Each piece of data
should not be reliant on another piece of data or an application. External applications that access
data from the DB will have no effect if data is altered or the physical structure of a given DB is
modified.
It’s similar to the independence of physical data. It indicates that any modifications made at the
logical level (or the table structures) should not have an impact on the user’s experience
(application). For example, if a table is split into two separate tables or into two table joins in order
to produce a single table, the application at the user view should not be affected.
When we are using SQL to put data into table cells, a DB must guarantee integrity independence. All
the entered values must not be changed, and the integrity of the data should not be reliant on any
external component or application. It’s also useful for making each front-end app DB-independent.
This rule denotes that a DB must function properly even if it’s stored in multiple locations and used
by various end-users. Let’s say a person uses an application to access the DB. In such a case, they
must not be aware that another user is using the same data, and thus, the data they always obtain is
only available on one site. The DB can be accessed by end-users, and each user’s access data must
be independent in order for them to run SQL queries.
RDBMS is defined by this rule as a SQL language for storing and manipulating data in a DB. If a
system uses a low-level or different language to access the DB system other than SQL, it should not
bypass or subvert data integrity.
Data Models
Data Model is the modeling of the data description, data semantics, and consistency
constraints of the data. It provides the conceptual tools for describing the design of a
database at each level of data abstraction. Therefore, there are following four data
models used for understanding the structure of the database:
1) Relational Data Model: This type of model designs the data in the form of rows and
columns within a table. Thus, a relational model uses tables for representing data and in-
between relationships. Tables are also called relations. This model was initially
described by Edgar F. Codd, in 1969. The relational data model is the widely used
model which is primarily used by commercial data processing applications.
4) Semistructured Data Model: This type of data model is different from the other three
data models (explained above). The semistructured data model allows the data
specifications at places where the individual data items of the same type may have
different attributes sets. The Extensible Markup Language, also known as XML, is widely
used for representing the semistructured data. Although XML was initially designed for
including the markup information to the text document, it gains importance because of its
application in the exchange of data.