Documente Academic
Documente Profesional
Documente Cultură
Management
Premiere Products- is a distributor of
appliances, housewares, and sporting
goods.
Redundancy- is the duplication of data or
the storing of the same data in more than
one place.
The
sample
order
has
three
components:
The heading (top) of the order
The body of the order contains one or
more order lines, sometimes called line
items. Each order line also contains a
total, usually called an extension,
The footing (bottom) of the order
contains the order total.
Database is a structure that contains
information
about
many
different
categories of information and about the
relationships between those categories.
Entity is a person, place, object, event, or
idea for which you want to store and
process data/ table names.
Attribute is a characteristic or property of
an entity/ also called a field or column.
Relationship is an association between
entities.
One-to-many relationship- example a
rep is associated with all of his or her
customers, and a customer is associated
with its rep.
Entity-relationship (E-R) diagram- rectangles represent entities, and lines
represent relationships between connected
entities.One- no arrow head/ absence of
dot and many- is indicated by a single
numeric fields.
CHAR(n): Stores a character string n
characters long. You use the CHAR type
for fields that contain letters and other
special characters and for fields that
contain numbers that will not be used in
calcualtions.
DATE: Stores dates in the form DDMON-YYYY or MM/DD/YYYY. For
example, May 12, 2010, could be stored
as 12-MAY-2010 or 5/12/2010.
SELECT-FROM-WHERE is the basic
form of an SQL retrieval command.
SELECT Clause- fields the
* symbol indicates that you want to
include all fields.
FROM Clause- from what table does the
fields came
WHERE Clause- condition/s
Reserved words this text uses a common style in which words that are part of
the SQL language appear in all uppercase
letters.
Simple condition includes the field name,
a comparison operator, and either another
field name or a value, such as
CreditLimit=10000orCreditLimit>Balanc
e
Comparison Operator Meaning
= Equal to
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
< > Not equal to (used by most
implementations of SQL)
!= Not equal to (used by some
implementations of SQL)
Database
Design
1:
is in the second
when it is in first
nonkey column is
a portion of the