Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Database
• collection of data used by an application
• data is logically organized into tables (relations), which consists of
data rows and columns
o data row (a.k.a. record or tuple)
o data columns (a.k.a., fields or attributes)
• access to (and uniqueness of) data rows are facilitated through
primary keys
• associations among related tables are facilitated through foreign keys
Database Schema
• notation used to describe the structure of a database
• e.g.:
COURSES(course, description, years)
STUDENTS(idno, stname, course, yr)
FK course REF COURSES
SUBJECTS(codeno, description, units, schedule, fee)
ENROLL(idno, codeno)
FK idno REF STUDENTS
codeno REF SUBJECTS