lecture 10 Flashcards
what is database design?
- they organize information in organizations.
- they help you think about which information is needed for specific processes.
what should a database do?
- enter information only once
- analyze data on different levels
- be fast and flexible
what is a database?
a collection of data organized to serve many applications by centralizing data and controlling redundant data. basically, excel sheets connected to other excel sheets.
what does a database consist of?
- tables with data
- relationships between tables
- metadata (data that descirbes data)
what is a database management system (DBMS)?
- the software you use to manage a database, specialized for storage, manipulation and retrieval of structured data
- separates logical and physical views of data
what capabilities do database management systems have?
- data definition capability
- data dictionary
- data manipulation language
what is a relational database?
a two-dementional table, each table contains data on one entity and its attributes.
what is a table?
a grid of
- rows > records for different instances of an entity
- columns > represents attribute for entity
what is the primary key?
field dat uniquely indentifies each record in a table
what is a foreign key?
field that is a primary key in another table, used for looking up records for that table and links records together
what is a flat-file database?
opposite of the relational database, database has a lot of loss of information, is inconsistent and contains redundant data
what is an entity-relationship diagram (ERD)?
illustration of relationships between entities. used by analysts to document the data model
what is an entity?
a box with a name that represents something
what type of relationships are there?
- one to one (1-1) > vb. lecturer has an office and does not share it with anyone
- one to many (N-1) > vb. lecturer teaches many courses, but a course is only thaugth by one lecturer
- many to many (N-N, N-M) > vb. students follow many courses, courses have many students