INFS1000 Lec 4 Databases and Information Flashcards
What are BUSINESS OBJECTS? Give some examples.
- Things, people, processes with more than 1 single instance that we want to collect info about.
e. g. Customers, products, suppliers, transactions, equipment, locations, staff.
What is the purpose of a DATABASE?
- To store and organize info on important business objects.
Why can’t spreadsheets do the same thing as a database?
- Spreadsheets can only keep list of a SINGLE business object (e.g. data about customers).
What does a database do? What does a database contain?
- Keeps lists of MULTIPLE business objects and their INTERRELATIONSHIPS (e.g. customers and their purchases).
Contains:
- Tables
- Relationships among tables
- Metadata
What is the definition of a database?
- a SELF-DESCRIBING collection of INTEGRATED RECORDS.
What are the 4 steps in the overall database process?
- User: has to solve a problem using data stored in the DB (e.g. Check schedule of classes for the semester).
- Database Application: software component allows user to analyse, organize, present, print and display data - this is what the user sees.
- DBMS: software component organizes the access to the DB: read, write, delete, change of data.
- DB: tables, relationships, metadata.
What are the INFS names for rows, columns, characters, tables?
Rows / Records
Columns / Fields
Characters / Bytes
Tables / Files
What is the HIERARCHY of data elements in a table?
- Bytes / characters are grouped into columns / fields.
- Columns / fields are grouped into rows / records.
- Rows / records are grouped into tables / files.
How do RELATIONSHIPS exist among tables?
- Relationships exist between ROWS in different tables. These implement and represent BUSINESS RULES.
- Relationship between rows are linked by KEYS (primary + foreign).
What are PRIMARY KEYS?
- Column / group of columns that uniquely identifies a row in a table.
What are FOREIGN KEYS?
- Columns that are primary keys in other tables.
What are RELATIONAL DATABASES?
- Databases using tables, primary keys, and foreign keys.
What is METADATA? Give some examples.
- Data about the data!
e. g.
* Field name (what is the column called).
* Data type (text, no, date DD/MM/YY etc).
* Field properties (e.g. length).
* Description (what is in it?).
What is a DATABASE MANAGEMENT SYSTEM (DBMS) and what does it do?
- Program used to create, process, and administer a database.
- Typically uses SQL (structured query language) and licensed from vendors. (e.g. Oracle, MySQL).
How is a database different from a DBMS / Database app?
- Database is a collection of tables, relationships and metadata (i.e. a big file on a HARD-disk).
- DBMS and apps are a SOFTware programs.