2database Management System of Multi Level Marketing Organisation
2database Management System of Multi Level Marketing Organisation
CONTENTS
ACKNOWLEDGEMENT
1. Introduction
Motivation
Scope / Feasibility
Functionality
2. Terminology
3. Database
4. Database management
5. Data model
6. RDBMS
Codd's rules
5. Entity
Strong Entity
Weak Entity
6. Attribute
7. Relation
8. KEYS
Super Key
Candidate Key
Primary Key
Composite key
Foreign Key
9. ER Diagram of MLM organisation management System
10. Extended (Enhanced ) ER Model:
Specialization:
Generalization:
Aggregation:
11. SQL (Structured Query Language)
12. Normalization
Anomalies
Functional dependencies
Normal forms (1nf,2nf)
INTRODUCTION
This project aims at development of Online MLM industries products/ policies &
Utility which facilitates the Associates to manage their sales business online, and
the database administrators (employee) to modify the backend databases in a
User-Friendly manner.
The Associates are required to register on the server for getting access to the
database and query result retrieval. Upon registration, each user has an account
which is essentially the view level for the Associates. The account contains
comprehensive information of the user entered during registration and permits the
Associates to get access to his past entries of sales, enquire about length of
network , their products & commission , make a fresh registration using D_id,
update his account details, etc.
The database Administrator (employee) is the second party in the transactions. The
administrator is required to login using a master password, once authenticated as
an administrator, one has access and right of modification to all the information
stored in the database at the server. This includes the account information of the
customers, attributes and statistics of sales & network, description of the binary
ratio of network and tags achieved by the Associates, all the new registration of
Associates that have been made, etc. The MLM administrator has the right to
modify any information stored at the server database.
Terminology
Database
A collection of integrated and related files
Character
Basic building block of information, represented by a byte
Entity
A generalized class of people, places, or things (objects) for
which data are collected, stored, and maintained
E.g., Associates, Employee
Attribute
A characteristic of an entity; something the entity is
identified by
E.g., Associates name, Employee name
Keys
Database
A database is an organized collection of data. The data is typically organized to
model relevant aspects of reality (for example, the availability of rooms in hotels),
in a way that supports processes requiring this information (for example, finding a
hotel with vacancies).
A general-purpose database management system (DBMS) is a software system
designed to allow the definition, creation, querying, update, and administration of
databases. Well-known DBMSs include MySQL, PostgreSQL, SQLite, Microsoft SQL
Server, Microsoft Access, Oracle, Sybase, dBASE, FoxPro, and IBM DB2. A database
is not generally portable across different DBMS, but different DBMSs can interoperate by using standards such as SQL and ODBC or JDBC to allow a single
application to work with more than one database.
Database management
Oracle
DB2
Sybase Adaptive Server Enterprise
FileMaker
Firebird
Ingres
Informix
Microsoft Access
Microsoft SQL Server
Microsoft Visual FoxPro
MySQL
PostgreSQL
Progress
SQLite
Teradata
CSQL
OpenLink Virtuoso
Process to Design a database management
Database creation
Tables
Querying a database
DATA MODEL
Planned data redundancy
A way of organizing data in which the logical database design is altered so
that certain data entities are combined
Summary totals are carried in the data records rather than calculated from
elemental data
Some data attributes are repeated in more than one data entity to improve
database performance
Data model
A map or diagram of entities and their relationships
Enterprise data modeling
Data modeling done at the level of the entire organization
Entity-relationship (ER) diagrams
A data model that uses basic graphical symbols to show the organization of and
relationships between data
RDBMS
A relational database management system (RDBMS) is a database
management system (DBMS) that is based on the relational model as introduced
by E. F. Codd, of IBM's San Jose Research Laboratory. Many popular databases
currently in use are based on the relational database model.
Codd's 12 rules
Rule 2: The guaranteed access rule: All data must be accessible. This rule is
essentially a restatement of the fundamental requirement for primary keys. It says
that every individual scalar value in the database must be logically addressable by
specifying the name of the containing table, the name of the containing column and
the primary key value of the containing row.
Rule 3: Systematic treatment of null values: The DBMS must allow each field to
remain null (or empty). Specifically, it must support a representation of "missing
information and inapplicable information" that is systematic, distinct from all
regular values (for example, "distinct from zero or any other number", in the case
of numeric values), and independent of data type. It is also implied that such
representations must be manipulated by the DBMS in a systematic way.
Rule 4: Active online catalog based on the relational model: The system must
support an online, inline, relational catalog that is accessible to authorized users by
means of their regular query language. That is, users must be able to access the
database's structure (catalog) using the same query language that they use to
access the database's data.
Rule 5: The comprehensive data sublanguage rule: The system must support at
least one relational language that
1. Has a linear syntax
2. Can be used both interactively and within application programs,
3. Supports data definition operations (including view definitions), data
manipulation operations (update as well as retrieval), security and
Rule 7: High-level insert, update, and delete: The system must support setat-a-time insert, update, and delete operators. This means that data can be
retrieved from a relational database in sets constructed of data from multiple
rows and/or multiple tables. This rule states that insert, update, and delete
operations should be supported for any retrievable set rather than just for a
single row in a single table.
Rule 8: Physical data independence: Changes to the physical level (how the
data is stored, whether in arrays or linked lists etc.) must not require a
change to an application based on the structure.
E R Model:
E R model refers to Entity Relationship model. It is the graphical representation of
database. ER Model describes data as Entities , attributes and relationship.
Entity is the real world object or in other words entity can be anything in the real
world which can be described by its attributes .
Attributes are some properties which describes the entity.
Relationship describe the association among two or more entities.
ENTITY
Weak Entity: Those entities which do not have any primary key are called weak
entities.
Strong Entity: Those entities which have at least one or more primary key are
called strong entities.
Attributes
An attribute is a property or characteristics that hold some information
about an entity. A Customer for example, has attributes such as a
name, and an address.
ATTRIBUTE
Relations
In the relational data model, the data in a database is organized in
Relations . A relation is synonymous with a table. A table consists of
columns and rows, which are referred as field and records in DBMS
terms, and attributes and tuples in Relational DBMS terms.
RELATIONS
Relational Keys
There are many types of keys that can be defined in the relational model. These
have significant importance in maintaining data consistency and correctness in the
database.
a)
Super Key: is the combination of one attribute (field) which has unique
value and any other field in the database. For ex. In any bank , customer is
identified by customer name and account no. So combination of customer name
and account no. formed super key.
b)
field while we can identify or separate the entity through one field which
has unique value in the database. This unique attribute is referred as candidate
key. For ex . Customer can be identified through account no. so there is no need to
use extra field customer name.
C)
Primary Key:
d)
e)
is matched to candidate
keys of another table (or even the same table). That is, a child table may
reference the
parent table for appropriate attribute values. Please note that the
corresponding attributes
in two different tables must have the same data type and domain
Rg_id
NAME
City_add
asset
MLM ORGANISATION
commission
nominee
D_id
associated
Org_lngth
Tr_id
Associates
Ass_name
sales
purchase
PRODUCTS
& policies
Used by
Login_box
Iso_id
Global_office
Pr_type
Asso_info
Pr_cost
Pr_name
Pr_info
manages
news
Employee
Employee_id
Employee_name
Dependent_name
Start_date
Employment
length
City_add
Mo_no
Emp_salary
Extended(Enhanced ) ER Model:
The ER modeling concepts are sufficient for representing traditional database
application. For more complex database application such as telecommunications ,
CAD/CAM , GIS etc , we need more complex requirements than traditional
applications. In late 1970s database designers have tried to design more accurate
ER model , which reflects the data properties and constraints more accurately . So
extended(Enhanced ) ER model have some enhanced features than normal ER
model. It uses the concepts of Specialization , Generalization , Aggregation.
Specialization:
Specialization is the process through which we can relate one entity to more than
one entity. In other words specialization is the process to defining a set of
subclasses of an entity type.
Generalization:
Generalization is just reverse of Specialization. Generalization is the process to
define a generalized entity type from the given entity type. For ex. consider the two
entity software and holiday accommodation. Because both have some common
attributes, their combination make a super entity called products. So it is the
process to identify the common features (attributes) from
Two or more entity and generalized them into a super entity.
Brand
price
Iso_reg no
An org products
specification
license
software
Time_ses
sion
places
Holiday accommodation
package
Aggregation:
Aggregation is the combined part of specialization and generalization. It is the
process to define both specialized and generalized entity. Manager is a employee
works on branch and manage the works of branch. It shows the relationship
between two relations.
JOB
Employee
Works
on
manages
Manager
Branch
NORMALIZATION
Normalization is process, by which we ca create an efficient database or
we design an efficient database . we have to reduce the redundancy and
increase the efficiency.