0% found this document useful (0 votes)
10 views9 pages

ER Diagram for Ticket Booking System

The document describes designing an entity relationship diagram for a railway commodity reservation system. It discusses the key components of an ER diagram including entities, relationships, attributes, and their definitions. It also covers entity and attribute categories. The document notes limitations of ER diagrams including only being applicable for relational data and difficulties integrating with existing databases. It states that ER diagrams are commonly used for database design, validation, and documentation.

Uploaded by

Parth Sarthi
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)
10 views9 pages

ER Diagram for Ticket Booking System

The document describes designing an entity relationship diagram for a railway commodity reservation system. It discusses the key components of an ER diagram including entities, relationships, attributes, and their definitions. It also covers entity and attribute categories. The document notes limitations of ER diagrams including only being applicable for relational data and difficulties integrating with existing databases. It states that ER diagrams are commonly used for database design, validation, and documentation.

Uploaded by

Parth Sarthi
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

EXPERIMENT-3

AIM: DESIGN A USE CASE DIAGRAM FOR RAILWAY COMMODITY RESERVATION SYSTEM.
THEORY: Use-case diagrams describe the high-level functions and scope of a system. These
diagrams also identify the interactions between the system and its actors. The use cases and
actors in use-case diagrams describe what the system does and how the actors use it, but not
how the system operates internally. Use-case diagrams illustrate and define the context and
requirements of either an entire system or the important parts of the system. You can model
a complex system with a single use-case diagram, or create many use-case diagrams to
model the components of the system. You would typically develop use-case diagrams in the
early phases of a project and refer to them throughout the development process.
EXPERIMENT-4
AIM: WRITE A USE CASE DESCRIPTION FOR RAILWAY COMMODITY RESERVATION SYSTEM.
DESCRIPTION:-
WHAT IS A USE CASE DIAGRAM?
A use case diagram is used to represent the dynamic behaviour of a system. It encapsulates
the system's functionality by incorporating use cases, actors, and their relationships. It
models the tasks, services, and functions required by a system/subsystem of an application.
It depicts the high-level functionality of a system and also tells how the user handles a
system.
PURPOSE OF A USE CASE DIAGRAM:-

Use case diagrams are typically developed in the early stage of development and people.
often apply use case modeling for the following purposes:
 Specify the context of a system.
 Capture the requirements of a system.
 Validate a systems architecture.
 Drive implementation and generate test cases.
 Developed by analysts together with domain experts.

The following components are used to design a use case approach:-

Actor:

 Someone interacts with use case (system function).


 Actors represent entities, which can be people, other systems, or external
components that interact with the system.
 Actors initiate actions or perform tasks within the system to achieve their goals.
 Actors play specific roles in relation to the system's functionality.
 They are not part of the system itself but engage with it to achieve specific goals or
tasks.
 Actor triggers use case(s).
 Actor has a responsibility toward the system (inputs), and Actor has expectations
from the system (outputs).
Use Cases:-

 A use case in a use case diagram is a visual representation.


 Each use case describes a specific interaction between one or more actors.
 Use cases includes information about the goals of the user.
 Use cases provide a clear and understandable way to communicate the expected
system behaviour.
Use Case Templates:-

 A unique identifier or name for the use case.


 A statement that defines the scope or context of the use case.
 Information about how often the use case is expected to be executed.
 Information about optional or conditional functionality that can be triggered during
the execution of the use case.
 Use case templates provide a structured approach to documenting system
behaviour.
Use case Boundary:-

 The system boundary in a use case represents the line that separates the system
from its external environment.
 The system boundary is an essential concept in use case modeling and helps clarify
the scope of a particular use case.
 It indicates which parts of the system are relevant to the use case and which parts
are not.
EXPERIMENT-5
AIM: DESIGN A DATA FLOW DIAGRAM LEVEL 0 AND LEVEL 1 FOR RAILWAY COMMODITY
RESERVATION SYSTEM

THEORY: Data Flow Diagram (DFD) is a graphical representation of data flow in any system.
It is capable of illustrating incoming data flow, outgoing data flow and store data. Data flow
diagram describes anything about how data flows through the system.
Sometimes people get confused between data flow diagram and flowchart. There is a major
difference between data flow diagram and flowchart. The flowchart illustrates flow of
control in program modules. Data flow diagrams illustrate flow of data in the system at
various levels. Data flow diagram does not have any control or branch elements.
TYPES OF DFD:-
 LOGICAL DFD: Logical data flow diagram mainly focuses on the system process. It
illustrates how data flows in the system. Logical DFD is used in various organizations
for the smooth running of system. Like in a Banking software system, it is used to
describe how data is moved from one entity to another.

 PHYSICAL DFD: Physical data flow diagram shows how the data flow is actually
implemented in the system. Physical DFD is more specific and close to
implementation.

Components of Data flow Diagrams:-

 External Entity: Entities include source and destination of the data. Entities are
represented by rectangle with their corresponding names.

 Process: The tasks performed on the data is known as process. Process is


represented by circle. Somewhere round edge rectangles are also used to represent
process.

Data Storage: Data storage includes the database of the system. It is represented by
rectangle with both smaller sides missing or in other words within two parallel lines.

 Data Flow: The movement of data in the system is known as data flow. It is
represented with the help of arrow. The tail of the arrow is source and the head of
the arrow is destination.
DATA FLOW DIAGRAM LEVEL 0: -
 This is the highest-level DFD, which provides an overview of the entire system.
 It shows the major processes, data flows, and data stores in the system.
 without providing any details about the internal workings of these processes.

DATA FLOW DIAGRAM LEVEL 1: -


 This level provides a more detailed view of the system
 by breaking down the major processes identified in the level 0 DFD into sub-
processes.
 Each sub-process is depicted as a separate process on the level 1 DFD.
 The data flows and data stores associated with each sub-process are also shown.
EXPERIMENT-6
AIM: DESIGN ENTITY RELATIONSHIP DIAGRAM FOR RAILWAY COMMODITY RESERVATION
SYSTEM.
THEORY: An Entity Relationship (ER) Diagram is a type of flowchart that illustrates how
“entities” such as people, objects or concepts relate to each other within a system. ER
Diagrams are most often used to design or debug relational databases in the fields of
software engineering, business information systems, education and research. Also known as
ERDs or ER Models, they use a defined set of symbols such as rectangles, diamonds, ovals
and connecting lines to depict the interconnectedness of entities, relationships and their
attributes.

The components and features of an ER diagram:-

Entity: A definable thing—such as a person, object, concept or event—that can have data
stored about it. Think of entities as nouns. Examples: a customer, student, car or product.
Typically shown as a rectangle.

 Entity type: A group of definable things, such as students or athletes, whereas the
entity would be the specific student or athlete. Other examples: customers, cars or
products.

 Entity set: Same as an entity type, but defined at a particular point in time, such as
students enrolled in a class on the first day. Other examples: Customers who
purchased last month, cars currently registered in Florida. A related term is instance,
in which the specific person or car would be an instance of the entity set.

 Entity categories: Entities are categorized as strong, weak or associative. A strong


entity can be defined solely by its own attributes, while a weak entity cannot.

Relationship: How entities act upon each other or are associated with each other. For
example, the named student might register for a course. The two entities would be the
student and the course, and the relationship depicted is the act of enrolling, connecting the
two entities in that way. Relationships are typically shown as diamonds or labels directly on
the connecting lines.

Attribute: A property or characteristic of an entity. Often shown as an oval or circle.

 Descriptive attribute: A property or characteristic of a relationship


 Attribute categories: Attributes are categorized as simple, composite, derived, as
well as single-value or multi-value. Simple: Means the attribute value is atomic and
can’t be further divided, such as a phone number. Composite: Sub-attributes spring
from an attribute. Derived: Attributed is calculated or otherwise derived from
another attribute, such as age from a birthdate.
 Multi-value: More than one attribute value is denoted, such as multiple phone
numbers for a person.
 Single-value: Just one attribute value. The types can be combined, such as: simple
single-value attributes or composite multi-value attributes.
Limitations of ER diagrams and models

 Only for relational data: Understand that the purpose is to show relationships. ER
diagrams show only that relational structure.

 Not for unstructured data: Unless the data is cleanly delineated into different fields,
rows or columns, ER diagrams are probably of limited use. The same is true of
semi-structured data, because only some of the data will be useful.

 Difficulty integrating with an existing database: Using ER Models to integrate with


an existing database can be a challenge because of the different architectures.
Uses of entity relationship diagrams

 Database design: ER diagrams are used to model and design relational databases, in
terms of logic and business rules (in a logical data model) and in terms of the
specific technology to be implemented (in a physical data model.) In software
engineering, an ER diagram is often an initial step in determining requirements for
an information systems project. It’s also later used to model a particular database
or databases. A relational database has an equivalent relational table and can
potentially be expressed that way as needed.

 Database troubleshooting: ER diagrams are used to analyze existing databases to


find and resolve problems in logic or deployment. Drawing the diagram should
reveal where it’s going wrong.

 Business information systems: The diagrams are used to design or analyze relational
databases used in business processes. Any business process that uses fielded data
involving entities, actions and interplay can potentially benefit from a relational
database. It can streamline processes, uncover information more easily and
improve results.

 Business process re-engineering (BPR): ER diagrams help in analyzing databases


used in business process re-engineering and in modeling a new database setup.

 Databases are today’s method of storing relational information for educational


purposes and later retrieval, so ER Diagrams can be valuable in planning those
data structures.

 Research: Since so much research focuses on structured data, ER diagrams can play a
key role in setting up useful databases to analyze the data.

Common questions

Powered by AI

Developing data flow diagrams at different levels serves to provide both macro and micro views of the system. Level 0 DFDs give a high-level overview, illustrating major processes and data interactions without detailed internal workings, which is useful for communicating core functionalities to stakeholders. Level 1 DFDs break down these major processes into detailed sub-processes, showing specific data flows and stores, which guide developers during implementation. Together, these levels complement each other by allowing a comprehensive understanding of the system, aiding in analysis and design .

Use case diagrams assist analysts by capturing the high-level functionality and requirements of the system, enabling early validation of user needs and system context. They help define the interactions between users and the system. Data flow diagrams complement this by providing a visual representation of the data processes and flow within the system, allowing designers to map out how data is managed and transformed. Together, these diagrams support thorough system analysis and design, facilitating communication between stakeholders and identifying potential issues early in the development phase .

In data flow diagrams, data storage components are depicted as rectangles with smaller sides missing or within two parallel lines, emphasizing data flows and storage relationships within processes. In contrast, entity relationship diagrams use rectangles to represent entities and their relationships, focusing on how entities relate to each other within a system. While both emphasize data management, DFDs highlight process-driven data storage while ER diagrams emphasize relational structures and attributes .

Logical data flow diagrams focus on the processes that data undergoes as it flows through the system without regard to the physical implementation. They illustrate how data is transformed and used. Meanwhile, physical data flow diagrams show how these processes are implemented in the system, including physical data storage and movements, thus providing a closer representation of the system's operational reality .

ER diagrams can be beneficial in business process re-engineering by providing a clear visual representation of relational databases, which aids in analyzing and designing efficient database structures. They streamline processes and improve data retrieval, essential for re-aligning business processes. However, their limitations lie in handling only structured data, which might not encompass all business data types. Difficulty in integrating with existing databases due to architectural differences can also hinder effective re-engineering .

Use case templates provide a structured approach to documenting system behavior by including elements such as unique identifiers, scope definitions, execution frequency, and optional functionalities. This standardized format ensures consistent and comprehensive documentation of each use case, facilitating clear communication about system requirements and expected behavior. By organizing information systematically, they help in aligning stakeholders' understanding and in guiding developers during system implementation .

Integrating ER models with existing databases can present challenges due to differences in architecture and structure. ER diagrams primarily represent relational data, which may not align with the current database's schema or architecture. Additionally, the existing database might include constraints or structures that are not easily adapted into the relational model depicted by the ER diagram. These discrepancies can complicate the integration process, requiring significant adjustments or re-engineering to align the two systems .

Use-case diagrams help in validating a system's architecture by visually depicting the interactions between the system and its actors, thereby ensuring all necessary functions and requirements are accounted for. This visual representation aids in confirming that the system's architecture supports the intended use, highlighting relationships and dependencies that need to be present in the architectural design .

The essential components of a use case diagram include Actors, Use Cases, and Use Case Boundaries. Actors represent external entities interacting with the system such as users or other systems. Use Cases describe specific interactions and tasks that actors engage with. Use Case Boundaries delineate what is included within the system and what is external, thus defining the system's scope. These components interrelate by showing how actors use the system to achieve specific goals, and they define the interaction paths between these actors and the system's functionalities .

Actors in a use case diagram are external entities that interact with the system, representing users or other systems. They play a crucial role by initiating actions and performing tasks within the system to achieve specific goals. Their interaction with the use cases illustrates how the system's functionality is utilized, influencing system design decisions to ensure user needs are met. Actors help define the scope of use cases and guide the system's architecture by specifying input requirements and expected outcomes .

You might also like