HKUST5Database Systems
Exercise:
Exercise:
Physical DB Design
Physical DB Design
Employee (eid, ename, age, salary, company-id)
Company (cid, cname, address)
1), List all the company name for employees with ages in a user-specified range.
1. What indexes should we create?
Which relations should have index?
Employee and Company
What attributes should be the search key?
Employee.Age and Company.cid
2. For each index, what kind of an index should it be?
Hash or ordered (B+-tree)?
B+-tree for Employee.Age and Hash for Company.cid
Clustered or non-clustered?
Clustered for Employee.Age, and non-clustered for Company.cid (hash index
should be non-clustered).
评论0
最新资源