The set of allowed values for each attribute is called the domain of the attribute
Attribute values are (normally) required to be atomic; that is, indivisible
The special value null is a member of every attribute
The null value causes complication in the definition of many operations
Relation Schema and Instance
A1โ,A2โ,โฏ,Anโ are attributes
R=(A1โ,A2โ,โฏ,Anโ) is a relation schema
Example: instructor = (ID, name, dept_name, salary)
Formally, given sets D1โ,D2โ,โฏ,Dnโ a relation r is a subset of D1โรD2โรโฏรDnโ
Thus, a relation is a set of n-tuples(a1โ,a2โ,โฏ,anโ) where each aiโโDiโ
The current values(relation instance) of a relation are specified bu a table
An element t of r is a tuple, represented by a row in a table
Relations are Unordered
Order of tuples is irrelevant (tuples may be stored in an arbitrary order)
This is on the logical design level - ordering can be defined on physical level
A database consists of multiple relations
Information about an enterprise is broken up into parts
instructor, student, advisor
Bad design: univ (instructor_id, name, dept_name, salary, student_id, ...)
results in
repetition of information (e.g., two student have the same instructor)
the need for full values (e.g., represent a student with no advisor)
Normalization theory deals with how to design "good" relational schemas(What is good)
Keys
superkey: K is a superkey of R if values for K are sufficient to identify a unique tuple of any possible relation r(R)
Normal distribution, also known as Gaussian, Gauss, or Laplace-Gauss distribution, is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is
f(x)=1โโtโฯโ+โโ jโ=0
The graph depiction of normal distribution is called bell curve, because it looks like a bell.