0% found this document useful (0 votes)
20 views2 pages

Entity-Relationship Modelling Tutorial

The document outlines a tutorial for designing an entity-relationship model for the Varsity International Network of Oenology's database application, which manages member and wine information. It details the requirements for identifying entity sets, relationship sets, attributes, keys, and participation constraints, as well as the translation of the entity-relationship diagram into a relational schema with SQL DDL code. Additionally, it references various database system literature for further reading.

Uploaded by

Runjia Chen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Entity-Relationship Modelling Tutorial

The document outlines a tutorial for designing an entity-relationship model for the Varsity International Network of Oenology's database application, which manages member and wine information. It details the requirements for identifying entity sets, relationship sets, attributes, keys, and participation constraints, as well as the translation of the entity-relationship diagram into a relational schema with SQL DDL code. Additionally, it references various database system literature for further reading.

Uploaded by

Runjia Chen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Tutorial: Entity-relationship Modelling

The Varsity International Network of Oenology wishes to computerise the management of the information
about its members as well as to record the information they gather about various wines. Your company, Apasaja
Private Limited, is commissioned by the Varsity International Network of Oenology to design and implement
the relational schema of the database application. The organisation is big enough so that there could be several
members with the same name. A card with a unique number is issued to identify each drinker. The contact
address of each member is also recorded for the mailing of announcements and calls for meetings.
At most once a week, VINO organises a tasting session. At each session, the attending members taste several
bottles. Each member records for each bottle his or her evaluation of the quality (very good, good, average,
mediocre, bad, very bad) of each wine that she or he tastes. The evaluation may dier for the same wine from
one drinker to another. Actual quality and therefore evaluation also varies from one to another bottle of a given
wine. Every bottle that is opened during the tasting session is nished during that session.
Each wine is identied by its name (Parade D'Amour), appellation (Bordeaux) and vintage (1990). Other
information of interest about the wine is the degree of alcohol (11.5), where and by whom it has been bottled
(Mis en Bouteille par Amblard-Larolphie Negociant-Eleveur a Saint Andrede Cubzac (Gironde) - France), the
certication of its appellation if available (Appellation Bordeaux Controlée), and the country it comes from
(produce of France).
Generally, there are or have been several bottles of the same wine in the cellar. For each wine, the bottles in
the wine cellar of VINO are numbered. For instance, the cellar has 20 bottles numbered 1 to 20 of a Semillon
from 1996 named Rumbalara. For documentation purposes VINO may also want to record wines for which it
does not own bottles. The bottles are either available in the cellar or they have been tasted and emptied.
We rst want to design an entity-relationship schema that most correctly and most completely captures the
constraints expressed in the above description of the VINO application.

1. Entity-relationship design.

(a) Identify the entity sets. Justify your choice by quoting the sentences in the text that support it.

(b) Identify the relationship sets and the entity sets that they associate. Justify your choice by quoting
the sentences in the text that support it.

(c) For each entity set and relationship set identify its attributes. Justify your choice by quoting the
sentences in the text that support it.

(d) For each entity set, identify its keys.

(e) For each entity set and each relationship set in which it participates, indicate the minimum and
maximum participation constraints.

(f ) Draw the corresponding entity-relationship diagram with the key and participation constraints. Indi-
cate in English the constraints that cannot be captured, if any.

2. Logical design and SQL DDL code.


(a) Translate your entity-relationship diagram into a relational schema. Give the SQL DDL statements
to create the schema. Declare the necessary integrity constraints. Indicate in English the constraints
that cannot be captured, if any.

References
[1] P. Atzeni, S. Ceri, S. Paraboschi, and R. Torlone. Database Systems - Concepts, Languages and Architectures.
[Link] Visited on 29 December 2021.

[2] S. Bressan and B. Catania. Introduction to Database Systems. McGraw-Hill Education, 2006.

[3] H. Garcia-Molina, J.D. Ullman, and J. Widom. Database Systems: The Complete Book. Pearson interna-
tional edition. Pearson Prentice Hall, 2009.

[4] R. Ramakrishnan and J. Gehrke. Database Management Systems. McGraw-Hill, 2002.

Page 2

Common questions

Powered by AI

Recording wines not currently present in the cellar is important as it allows VINO to maintain comprehensive records of all wines they have evaluated or plan to acquire. This helps in tracking historical evaluations and preparing for future acquisitions or tastings. It ensures that VINO can manage not just their inventory but also their tasting experience and historical records, providing a broader organizational and operational context beyond immediate inventory, thus enhancing decision-making and planning capacities .

Capturing multiple participations allows for detailed tracking of a member's engagement and preference trends over time, supporting personalized marketing and targeted communications. However, this introduces complications such as increased data volume and complexity, necessitating the development of robust indexing and retrieval strategies to efficiently manage and analyze this data. Ensuring the accurate correlation of tasting session details with specific wines and maintaining the integrity of multi-faceted evaluations also requires meticulous schema design and query optimizations . Addressing these effectively enhances the user experience and the organization’s operational insights but requires sophisticated database management solutions.

Attributes like 'degree of alcohol' and 'certification of appellation' are essential for categorizing and differentiating wine entries within the database. These attributes help capture the specific qualities and legal certifications that affect both the perceived and official quality standards of the wine, impacting consumer preference and regulatory compliance. They enrich the database by providing detailed characteristics that are vital for evaluation, reporting, marketing, and compliance purposes within the wine organization . These attributes ensure that the organization can provide detailed and accurate descriptions for each wine, aiding in customer service and operational efficiencies.

Unique identifiers such as a member's card number are crucial for avoiding ambiguities and ensuring accurate tracking of each entity. They help in uniquely recognizing and differentiating members, even when non-unique attributes like names are shared by many members. This facilitates accurate data management, reducing errors in operations like mailing, meeting announcements, and tracking of tasting evaluations. Additionally, unique identifiers enable the efficient implementation of primary keys in relational database schemas, supporting reliable referencing and relational integrity .

Crucial considerations include defining primary keys for uniqueness, foreign keys for maintaining relationships between tables, and integrity constraints like NOT NULL, UNIQUE, and CHECK constraints to enforce data validity and accuracy . Additionally, understanding the participation constraints from the entity-relationship model helps to correctly specify the required relationships in the relational schema, ensuring the translated schema maintains the same constraints and characteristics as the conceptual model . These considerations help in maintaining the relational database’s integrity and ensure it functions as intended within its application context.

The significance lies in ensuring that all business rules and real-world constraints are respected, even if they cannot be visually represented. Constraints that are not captured in an entity-relationship diagram might need to be enforced through application logic or database triggers. For example, ensuring only empty bottles are removed from the system or only members with a valid card number participate in tastings might require additional checks beyond the diagram . Omitting these constraints in the design phase can lead to integrity issues and operational discrepancies in the database.

Participation constraints impact the design by determining the minimum and maximum number of associations an entity can have with another entity within relationships. In the case of a wine cellar management system, these constraints can dictate, for instance, that every tasting session must have at least one bottle and at least one member participating, reflecting the actual operational dynamics at VINO . These constraints ensure the model accurately represents real-world limits, thereby guiding the database’s structural integrity and operational use cases.

Challenges include ensuring that each wine is correctly identified and associated with its corresponding attributes such as vintage, appellation, and bottling details, which might vary slightly from one bottle to another. This complexity can lead to potential mismanagement or incorrect evaluations if the relationships are not correctly structured. Moreover, it may require complex query mechanisms to retrieve specific bottles based on these attributes for operations like inventory stock-taking or scheduling tastings sessions, necessitating precise indexing and data retrieval strategies . Managing such data effectively requires comprehensive indexing strategies and careful schema design to ensure accurate tracking and retrieval.

When identifying entity sets in an entity-relationship model for a wine tasting organization like the Varsity International Network of Oenology, several key factors must be considered. These include the unique identifiers for each entity, such as members and wines. Each member has a unique card number, which serves as an identifier, differentiating them even if they share the same name . Wines need to be defined by specific attributes like name, appellation, vintage, and other characteristics, all of which help uniquely identify a wine . Additionally, entities should reflect all necessary attributes to capture the full range of information relevant to the organization's operations.

Documenting wines without owning them provides the opportunity to maintain a comprehensive wine directory for educational purposes, planning future acquisitions or tastings, and expanding knowledge resources. This enhances the organization’s strategic capabilities in market analysis and outreach. However, it also introduces limitations, such as management overhead related to maintaining up-to-date and accurate information, which may challenge data quality and consistency without meticulous diligence and resource investment . These entries, while beneficial, require strategic planning to integrate beneficially without overwhelming existing database resources.

You might also like