session 7: fundamentals of relational database operations Flashcards
data file
collection of logically related records
data hierarchy
bit
byte
field
record
data file/table
database
bit def
smallest unit of data, 0 to 1
byte def
group of 8 byte, single character
field def
logical grouping of characters into a word, a small group of words, identification #
record def
logical grouping of related fields such as student’s name, the course taken and the grade
data file/table
logical grouping of records
relational database
collection of interrelated two-dimensional tables consisting of rows and columns
DBMS data base management system
set of programs with tools to create and manage databases. Meaning adding, deleting, accessing, modifying, and analyzing data that are stored in the database.
Can access the data with query and reporting tools or apps.
DBMS minimizes
data redundancy
data isolation: application cannot access data associated with other apps
data inconsistency
DMBS maximizes
Data security: data is put in one place, risk of losing it all at once
Data integrity: meets certain constraints
Dara independence: applications and data independent so all apps are able to access same data
data model def
a diagram that represents entities in the database and their relationships
entity def
a person, place, thing about whihc an organization maintain info about
instance def
each row in a relational table which is a specific unique representation of the entity
ex: entity is student and instance of the entity would be a particular student
attribute def
each characteristic or quality particular to an entity
ex: if entity is customers attribute would be name , employee number and product colour
primary key def
the identifier field or attribute
foreign key def
a field or group of field in 1 unique table that uniquely identifies a row of another table
secondary key def
a field that has some identifying info but typically does not identify the record with complete accuracy
query language
Structured Query Language (SQL)
Query by Exqmple (QBE)
SQL
allows people to do complicated searches by using relatively simple statements/key words (SELECT, FROM, WHERE)
QBE
the users fill out a grid or template (“form”) to construct a sample or description of data desired
relationships illustrate…
….an association between entities
degree of relationships
number of entities associated with a relationship
entity-relationship diagram (ERD)
doc that shows data entities + attributes + relationships among them