Professional Documents
Culture Documents
Arshdeep Singh - 2024S1 - Ict503 - A1a
Arshdeep Singh - 2024S1 - Ict503 - A1a
Arshdeep Singh
Assessment 1 Part A
Case Study
This assignment concerns a liquor shop chain in Sydney, called the A-one liquor (AL).
The objective of this assignment is to develop a database system that will be used to
centrally store and manage all relevant information for the branches of AL.
The information to be stored include information on different branches of AL (e.g.,
Bankstown, Hornsby, etc.), types of drinks they sell (beers, wines, cedars, etc.), staff
they employ (Retail Assistants, Shelving Assistants, etc.), AL Members (AL Loyalty
Card holders). The basic requirements gathered from the stake holders is presented
in the following four points. As typically the case, these requirements are often
underspecified. Use your judgment in interpreting them when required and keep a
note of the assumptions you made.
Investigate and identify data requirement for the given study by providing list of
required entities, list of attributes in each of these entities, and the unique
identifier for each entity.
Based on the provided requirements, we can identify the following entities along with their
attributes and unique identifiers:
1. Branch Entity:
- Attributes:
- Branch Name
- Address
- Number of Employees
2. Product Entity:
- Attributes:
- Price
- Brand
- Attributes:
- Name
- Role
- Salary
+-----------------+
| Branch |
+-----------------+
| BranchID (PK) |
| BranchName |
| Address |
| NumEmployees |
| OpenDays |
| OpeningHours |
+--------+--------+
|
|
|
+------------+------------+
| |
| |
+----------v----------+ +---------v----------+
| Product | | Staff |
+---------------------+ +---------------------+
| ProductID (PK) | | StaffID (PK) |
| ProductType | | BranchID (FK) |
| PackagingType | | Name |
| Volume | | Role |
| Price | | EmploymentType |
| Brand | | Salary |
| CurrentStockLevel | | SupervisorID (FK) |
+----------+----------+ +----------+----------+
| |
| |
| |
+----------v-------------------v----------+
| Membership |
+------------------------------------------+
| MembershipID (PK) |
| MemberName |
| MembershipType |
| ExpiryDate |
+------------------------------------------+
In this ERD:
- Each rectangle represents an entity.
- The ovals within each entity represent attributes, with the primary key (PK) indicated.
- The lines connecting entities represent relationships.
- Relationship constraints such as foreign keys (FK) are indicated where applicable.
- BranchID in the Staff entity and SupervisorID in the Staff entity are foreign keys referencing
the Branch entity's primary key (BranchID).
- BranchID in the Product entity is a foreign key referencing the Branch entity's primary key
(BranchID).
- SupervisorID in the Staff entity is a foreign key referencing the Staff entity's primary key
(StaffID), indicating a hierarchical relationship.
- The Membership entity holds information about AL members, with MembershipID as the
primary key.
Derive the physical design having detail of entities, primary and foreign keys, detail
of all the attributes.
Here's the physical design detailing the entities, primary and foreign keys, and attributes:
*Entities:*
1. Branch:
- BranchName
- Address
- NumEmployees
- OpenDays
- OpeningHours
2. Product:
- ProductType
- PackagingType
- Volume
- Price
- Brand
- CurrentStockLevel
3. Staff:
- Name
- Role
- EmploymentType
- Salary
4. Membership:
- MemberName
- MembershipType
- ExpiryDate
- Branch:
- Product:
- Staff:
*Detail of Attributes:*
1. Branch:
2. Product:
3. Staff:
- SupervisorID: Identifies the supervisor of the staff member (self-referencing foreign key).
4. Membership: