– Conceptual schema
defines logical structure
– Physical schema
describes the files and
indexes used.
☛ Schemas are defined using DDL; data is modified/queried using DML
• Conceptual schema:
– Students(sid: string, name: string, login: string,
age: integer, gpa:real)
– Courses(cid: string, cname:string, credits:integer)
– Enrolled(sid:string, cid:string, grade:string)
• Physical schema:
– Relations stored as unordered files.
– Index on first column of Students.
DB