Normalization
Normalization
the process of organizing data to minimize redundancy is called normalization. The goal
of database normalization is to decompose relations with anomalies in order to produce
smaller, well-structured relations. Normalization usually involves dividing large tables
into smaller (and less redundant) tables and defining relationships between them. The
objective is to isolate data so that additions, deletions, and modifications of a field can be
made in just one table and then propagated through the rest of the database via the
defined relationships.
Primary Key :- The primary key of a relational table uniquely identifies each record in
the table. It can either be a normal attribute that is guaranteed to be unique (such as Social
Security Number in a table with no more than one record per person) or it can be
generated by the DBMS (such as a globally unique identifier, or GUID, in Microsoft SQL
Server). Primary keys may consist of a single attribute or multiple attributes in
combination.
Examples:
Imagine we have a STUDENTS table that contains a record for each student at a
university. The student's unique student ID number would be a good choice for a primary
key in the STUDENTS table. The student's first and last name would not be a good
choice, as there is always the chance that more than one student might have the same
name.
Join :- A SQL join clause combines records from two or more tables in a database.[1] It
creates a set that can be saved as a table or used as is. A JOIN is a means for combining
fields from two tables by using values common to each. ANSI standard SQL specifies
four types of JOINs: INNER, OUTER, LEFT, and RIGHT. In special cases, a table (base table,
view, or joined table) can JOIN to itself in a self-join. A programmer writes a JOIN
predicate to identify the records for joining. If the evaluated predicate is true, the
combined record is then produced in the expected format, a record set or a temporary
table.
1
*Some organizations have a hierarchical level of database administrators, generally:
Personal Characteristics/Skills:
1. Transferring Data
2. Replicating Data
3. Maintaining database and ensuring its availability to users
4. Controlling privileges and permissions to database users
5. Monitoring database performance
6. Database backup and recovery
7. Database security
Just as functions (in programming) can provide abstraction, so database users can create
abstraction by using views. In another parallel with functions, database users can
manipulate nested views, thus one view can aggregate data from other views. Without the
use of views the normalization of databases above second normal form would become
much more difficult. Views can make it easier to create lossless join decomposition.