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;
28 Cards in this Set
- Front
- Back
a technique of organizing the data in a database. a systematic approach to decomposing tables to eliminate data redundancy and undesirable characteristics. |
normilization |
|
no two rows of data can contain repeating group of information, i.e. each set of column must have a unique value such that multiple columns cannot be used to fetch the same row |
1st normal form |
|
there must not be any partial dependency of any column on primary key. It means that for a table that has concatenated primary key, each column in the table that is not part of the key must depend upon the entire concatenated key for its existance |
2nd normal form
|
|
every non-prime attribute of the table must be dependent on the primary key. there should not be the case that a non-prime attribute is determined by another non-prime attribute |
3rd normal form
|
|
This form deals with a certain type of anomaly that is not handled by the previous NF. a table which does not have multiple overlapping candidate keys is said to be in this form |
Boyce Codd Normal form
|
|
________ is a constraint between two sets of attributes in a relation from a database. In other words, ________ is a constraint that describes the relationship between attributes in a relation |
functional dependency |
|
______means that a nonprime attribute is functionally dependent on part of a candidate key. (A nonprime attribute is an attribute that's not part of any candidate key.) For example, let's start with R{ABCD}, and the functional dependencies AB->CD and A->C. The only candidate key for R is AB |
partial dependency |
|
what is a candidate key |
relationship that can uniquely identify a tuple
|
|
what is a super key |
a candidate key reduced to the minimum number of columns to uniquely identify a tuple
|
|
what is a non-prime attribute |
an attribute that does not occur in ANY candidate key is called a non-prime attribute |
|
relational algebra symbols |
|
|
what is JDBC |
Java database connectivity
|
|
what is ODBC |
Open database connectivity
|
|
what is DDL |
Data Definition language is a standard for commands that define the different structures in a database. DDL statements create, modify, and remove database objects such as tables, indexes, and users. Common DDL statements are CREATE, ALTER, and DROP.
|
|
what is DML |
Data Manipulation Language. It is used to retrieve, store, modify, delete, insert and update data in database.
|
|
Alternatives to DBMS/SQL |
file system hierarchical Hadoop |
|
what is the sql statement to alter a table |
ALTER TABLE table_name ADD column_name datatype DROP COLUMN column_name |
|
what is the sql statement to update a table |
UPDATE table_name
SET column1=value1,column2=value2,... WHERE some_column=some_value; |
|
what is the sql statement to retrieve all entries in ascending / descending order |
SELECT column_name, column_name
FROM table_name ORDER BY column_name ASC|DESC, column_name ASC|DESC; |
|
retrieve in descending order all customer balances for bank accounts of type savings grouped by account type |
SELECT balance FROM accounts WHERE type = savings ORDER BY balance DESC GROUPED BY type |
|
1st normal form |
rows must not have column n which more than one value is saved, like separated with commas |
|
does data redundancy increase or decrease in 1st normal form |
increase |
|
2nd normal form |
no column can be identified by one key if there is a multikey for the table |
|
3rd normal form |
split out parts that have another, better key. like if township determines zip code then zip should be separated reducing redundancy |
|
an application programming interface (API) for the programming language Java, which defines how a client may access a database |
Java database connectivity - JDBC |
|
a standard application programming interface (API) for accessing database management systems (DBMS) |
open database connectivity - ODBC |
|
a standard for commands that define the different structures in a database. ____statements create, modify, and remove database objects such as tables, indexes, and users. Common _____ statements are CREATE, ALTER, and DROP. |
data definition language - DDL |
|
It is used to retrieve, store, modify, delete, insert and update data in database. |
data manipulation language - DML |