HCPP Final Review Flashcards
database that has a collection of interrelated tables of data items
relational database
how do we store relational databases
RBDMS
RBDMS
relational database management systems
two types of databases
- PC-Based
2. Client/server
examples of PC-Based RDBMS
access, sql server, oracle
examples of client/server RBDMS
sybase, oracle 11g, ibm
5 uses for relational database
- control redundancy
- standardize data storage
- secure data
- share data
- maintain data integrity
6 signs of effective database design
- simple to use
- good system performance
- efficient storage handling
- backup and recovery procedures are effective
- system is able to deal with concurrency
- organization is able to audit use
auditing functions in database design are used to track these 2 things
- users
2. table access frequency
tells the story of an ERD
entity relationship narrative (ERN)
provides written descriptions of relationships in an ERD
entity relationship narrative (ERN)
main table in an ERD
entity
ERD consists of _____ shown as columns in the table
attributes
attributes =
column
a limit; something that has to be true; business rules
constraints
unique identifier; column in a table whose value will uniquely identify the row of data
primary key
pk symbol in an attribute list
#
column in a table that is a primary key in another table that link two tables together
foreign keys
t or f. foreign keys are always on the ‘many’ side of one to many
t
degree sign in an attribute list
optional
asterisk in an attribute list
mandatory
automatically assigns the next primary key in a specified pattern
sequence
expand SQL
structure query language
written to extract data from the database
query
explain
SELECT sysdate
FROM dual;
find today’s date from database
arrangement of words or phrases to create a sentence in a language; like a formula
syntax
t or f. query syntax using SQL is not an appropriate way to write a query
f
another name
alias
2 types of alias
- table
2. column
type of alias that makes it easier and faster to type a query
table
type of alias that changes how the column heading is displayed when data is returned
column
must be done if you want to pull data from more than one related table
table join
based on the relationship between the primary and foreign key
table join
returns every row of data from one table with every row of data from another table
cartesian product
is cartesian product desirable?
no; happens when a table join is done without conditions
when is cartesian product done?
to run certain tests
example of cartesian product
10 visits from 10 patients = multiplies results to show 100 rows
3 data types
- VARCHAR2
- NUMBER
- DATE
variable length characters string including letters, numbers or symbols
VARCHAR2
number data type can only include these 3 things
- digits 0-9
- decimal point
- minus sign
t or f. number data type are not limited to characters
false; example: 15 char upper limit
data type including info about date, time and time zone
date
default date format in sql
dd-mon-rr
refers to having the same data in different places within a database (duplication)
data redundancy
refers to data inconsistencies
data anomalies
4 signs of unnormalized database
- redundant data
- same attributes exist in more than one entity
- updates would have to be made in every single location
- contains repeating group
3 types of ERD
- conceptual
- logical
- physical
helps make databases easier to use
naming guidelines
example of a naming guideline
use underscores instead of spaces if title has more than one word
normalization phase where primary key is identified
first normal form (1NF)
normalization phase where repeating groups are eliminated e.g. separating authors into their own rows in case of books with multiple authors
first normal form (1NF)