Final Flashcards
what is a database?
a structured collection of related meaningful data
what is a database managemet system?
tool for accessing a database
- redundancy control
- access control
- storage
- querying
- backup
- concurrent access
- enforcing constraints
what are the layers of abstraction
external (user), conceptual (schemas), internal (data mapping)
what is the entity relationship model?
is a data model designed for the purpose of representing the semantics associated with data from the miniworld. The ERM is used in the conceptual design stage, where the conceptual scheme of the application’s database is conceived
the conceptual scheme that is created based on the entity-relationship model is called what?
Entity-relationship diagram (ERD)
what is an entity?
something in the real world that exists independently
what is an attribute?
information about an entity (ex. gender, dob, city of birth, etc.)
what is a composite attribute?
an attribute composed of parts (ie. address to components)
what is a multi-valued attribute
an attribute that may be composed by a group of values (ie. patient has more than one telephone number)
what is a derived attribute?
an attribute obtained by processing other attributes (ie. age = date - dob)
what is the cardinality ratio?
cardinality ratio specifies the number of relationship instances in which an entity can participate.
(patient HAS sample has cardinality of 1:N ie. one patient can have n sample entitities)
what are the mysql data types?
- int
- varchar
- boolean
- double
- float
- date
- datetime
- char
- text
- enum
insert rows into a table
insert into
how do you specify a primary key
primary key (id
)
how do you specify a unique key?
unique key (name
)
how to delete a table
drop table name