Hi there,
I was looking for guidance with regards to this problem. Any help would be greatly appreciated
Problem
A new accommodation block has been built on a university campus close to university facilities. There are three main buildings, named Hufflepuff, Ravensclaw and Slytherin, each with mixed accommodation. Hufflepuff also provides breakfasts and evening meals for those students who do not want to self-cater. The Accommodation Office requires a database to support the new letting processes. The type of accommodation available is as follows: a single room with shower; a single room with shared bathroom; small flat with 2 bedrooms. All bedrooms other than that of the flats have shared kitchen and dining facilities. Students can request the type of accommodation and the block they wish to live in, but are allocated places on a firstcome, first-served basis. They can also express a preference for self-catering, which
incurs an extra cost, or eating in the Hufflepuff canteen.
Required:
From the above description, identify the main entities, their attributes, data types and primary keys, for an Accommodation Office database.
Would the entities in this example be
- Building
- Meals
- Student
anything else?
I'm just trying to grasp the theory of this stuff so any help would be excellent
Thanks a lot!
I was looking for guidance with regards to this problem. Any help would be greatly appreciated

Problem
A new accommodation block has been built on a university campus close to university facilities. There are three main buildings, named Hufflepuff, Ravensclaw and Slytherin, each with mixed accommodation. Hufflepuff also provides breakfasts and evening meals for those students who do not want to self-cater. The Accommodation Office requires a database to support the new letting processes. The type of accommodation available is as follows: a single room with shower; a single room with shared bathroom; small flat with 2 bedrooms. All bedrooms other than that of the flats have shared kitchen and dining facilities. Students can request the type of accommodation and the block they wish to live in, but are allocated places on a firstcome, first-served basis. They can also express a preference for self-catering, which
incurs an extra cost, or eating in the Hufflepuff canteen.
Required:
From the above description, identify the main entities, their attributes, data types and primary keys, for an Accommodation Office database.
Would the entities in this example be
- Building
- Meals
- Student
anything else?
I'm just trying to grasp the theory of this stuff so any help would be excellent

Thanks a lot!