• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/29

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

29 Cards in this Set

  • Front
  • Back
Normalization
process for evaluating and correcting table structures to minimize data redundancies, thereby reducing the likelihoodof data anomalies
Denormalization
produces a lower normal form; that is, a 3NF will be converted to a 2NF through denormalization.
partial dependency
exists when there is a functional dependence in which the determinant is only part of the primary key (remember the assumption that there is only one candidate key)
transitive dependency
exists when a non-key attribute determines other non-key attribute

atomic attribute

is one that cannotbe further subdivided.

granularity

refers to the level of detail represented by the values stored in a table's row.

determinant

any attribute whose value determines other values within a row

key attribute

An attribute that is a part of a key

non-key attribute

not part of any candidate key

functional dependency

the value of one or more attributes determines the value of one or more other attributes

full functional dependency

functional dependencies in which the entire collection of attributes in the determinant is necessary for the relationship

repeating group

a group of multiple entries of the same type can exist for any single key attribute occurrence.

1NF

All of the key attributes are defined. There are no repeating groups in the table. In other words, each row/column intersection contains one and only one value, not a set of values. All attributes are dependent on the primary key.

2NF

1NF and It includes no partial dependencies; that is, no attribute is dependent on only a portion of the primary key

3NF

2NF and It contains no transitive dependencies

BCNF

every determinant in the table is a candidate key

4NF

3NF and no independent multivalued dependencies

Good Normalized Tables

Evaluate PK Assignments & Naming Conventions


Refine Attribute Atomicity, Identify New Attributes & Relationships. Refine PKs as Required for Data Granularity. Maintain Historical Accuracy.

alias

is an alternate name given to a column or table in anySQL statement.

inner query

A subquery, also known as a nested query or an inner query, is a query that is embedded (or nested) inside another query.

outer query

executed last, consists of outer most sections of sq

recursive query

A nested query that joins a table to itself

schema

A logical grouping of database objects, such astables, indexes, views, and queries, that are related to eachother. Usually, a schema belongs to a single user orapplication.



COUNT

Returns the number of rows with non-null values for a given column

DISTINCT

Limits values to unique values

SQL Create a Table

CREATE TABLE EMP_1 (EMP_NUMCHAR(3) NOT NULL,EMP_LNAMEVARCHAR(15) NOT NULL, PRIMARYKEY (EMP_NUM),INDEX (JOB_CODE),FOREIGNKEY (JOB_CODE) REFERENCES JOB(JOB_CODE),CONSTRAINTC_JOBCODE CHECK (JOB_CODE IN("500","501","502")));

SELECT CONCAT

SELECT CONCAT(EMP_FNAME, ' ', EMP_INITIAL, ' ', EMP_LNAME) AS EMP_NAME, JOB_CODE FROM EMP_1 ORDER BY EMP_LNAME;

SELECT COUNT AND ALIAS

SELECT JOB_DESCRIPTION, COUNT(*) AS NUM_EMPLOYEES FROM JOB,EMP_1 WHERE JOB.JOB_CODE = EMP_1.JOB_CODE GROUP BY (JOB_DESCRIPTION) ORDER BY JOB_DESCRIPTION;

SELECT AGGREGATE AND ROUND

SELECT ROUND(SUM(CUS_BALANCE),2) AS "TOTAL BALANCE"




FROM CUSTOMER




WHERE CUS_CODE NOT IN (SELECT CUS_CODE FROM INVOICE);