This document discusses reducing an ER diagram to relational schemas. It covers issues in ER diagram design like using entity sets vs attributes. It also describes how to represent different ER constructs in relational schemas, such as strong entities with simple/complex attributes, weak entities, and different relationship sets. Relationship sets linking weak entities or with total participation may result in redundant or combined schemas. The overall goal is to produce a quality set of relational schemas from a well-designed ER diagram.
The sole purpose of sharing these slides are to educate the beginners of IT and Computer Science/Engineering. Credits should go to the referred material and also CICRA campus, Colombo 4, Sri Lanka where I taught these in 2017.
The sole purpose of sharing these slides are to educate the beginners of IT and Computer Science/Engineering. Credits should go to the referred material and also CICRA campus, Colombo 4, Sri Lanka where I taught these in 2017.
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
Immunizing Image Classifiers Against Localized Adversary Attacksgerogepatton
This paper addresses the vulnerability of deep learning models, particularly convolutional neural networks
(CNN)s, to adversarial attacks and presents a proactive training technique designed to counter them. We
introduce a novel volumization algorithm, which transforms 2D images into 3D volumetric representations.
When combined with 3D convolution and deep curriculum learning optimization (CLO), itsignificantly improves
the immunity of models against localized universal attacks by up to 40%. We evaluate our proposed approach
using contemporary CNN architectures and the modified Canadian Institute for Advanced Research (CIFAR-10
and CIFAR-100) and ImageNet Large Scale Visual Recognition Challenge (ILSVRC12) datasets, showcasing
accuracy improvements over previous techniques. The results indicate that the combination of the volumetric
input and curriculum learning holds significant promise for mitigating adversarial attacks without necessitating
adversary training.
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
Hierarchical Digital Twin of a Naval Power SystemKerry Sado
A hierarchical digital twin of a Naval DC power system has been developed and experimentally verified. Similar to other state-of-the-art digital twins, this technology creates a digital replica of the physical system executed in real-time or faster, which can modify hardware controls. However, its advantage stems from distributing computational efforts by utilizing a hierarchical structure composed of lower-level digital twin blocks and a higher-level system digital twin. Each digital twin block is associated with a physical subsystem of the hardware and communicates with a singular system digital twin, which creates a system-level response. By extracting information from each level of the hierarchy, power system controls of the hardware were reconfigured autonomously. This hierarchical digital twin development offers several advantages over other digital twins, particularly in the field of naval power systems. The hierarchical structure allows for greater computational efficiency and scalability while the ability to autonomously reconfigure hardware controls offers increased flexibility and responsiveness. The hierarchical decomposition and models utilized were well aligned with the physical twin, as indicated by the maximum deviations between the developed digital twin hierarchy and the hardware.
Overview of the fundamental roles in Hydropower generation and the components involved in wider Electrical Engineering.
This paper presents the design and construction of hydroelectric dams from the hydrologist’s survey of the valley before construction, all aspects and involved disciplines, fluid dynamics, structural engineering, generation and mains frequency regulation to the very transmission of power through the network in the United Kingdom.
Author: Robbie Edward Sayers
Collaborators and co editors: Charlie Sims and Connor Healey.
(C) 2024 Robbie E. Sayers
5. ER Diagram Design Issues
• Use of Entity Sets v/s Attributes
• Use of Entity Sets v/s Relationship Sets
• Binary v/s n-ary relationships
• Placement of Relationship Attributes
7. Use of Entity Sets v/s Relationship
Sets
(a)
(b)
One possible guideline in determining
whether to use an entity set or a
relationship set is to designate a
relationship set to describe an action
that occurs between entities.
8. Binary v/s n-ary relationships
Ternary relationship versus three binary
relationships
9. Placement of Relationship
Attributes
• The design decision of where to place descriptive
attributes for a relationship or for an entity should
reflect the characteristics of the enterprise being
modeled.
13. Introduction
• A conceptual ER model can be reduced to relation
schemas because the two models employ similar design
principles.
• The quality of the resulting set of relation schemas
depends on the quality of the original ER diagram.
• Entity sets and relationship sets can be expressed
uniformly as relation schemas with the name of the
corresponding entity set or relationship set.
• Each schema has a number of columns (attributes),
which have unique names.
14. Example
Entity Set Relational Schema
Employees
ssn
name
lot
Employees(ssn, name, lot)
Create table Employees (
ssn number(5),
name varchar (10),
lot number(5),
primary key(ssn));
16. Representation of Strong Entity
Sets with Simple Attributes
• A strong entity set reduces to a schema with the
same attributes
• Example: course(course_id, title, credits)
• For schemas derived from strong entity sets, the
primary key of the entity set serves as the primary
key of the resulting schema.
17.
18. Representation of Strong Entity
Sets with Complex Attributes
• Complex Attributes – Composite, Multi-valued and
Derived Attributes.
• Represent composite attributes by creating a
separate attribute for each of the component
attributes(sub-parts).
• Represent multi-valued attributes itself as a separate
schema.
• Derived attributes are not explicitly represented in
relational model.
22. Representation of Weak Entity Sets
• For schemas derived from a weak entity set, the
combination of the primary key of the strong entity
set and the discriminator of the weak entity set
serves as the primary key of the schema.
• Example : section ( course_id, sec_id, sem, year )
23.
24. Representation of Relationship Sets
• Binary many-to-many relationship set is represented
as a schema with the union of primary keys of the
two participating entity sets.
• Example: schema for relationship set advisor
advisor = (s_id, i_id)
25. Contd..
• Binary one-to-one relationship set is represented as a
schema with the primary key of any one of the two
participating entity sets.
• Binary many-to-one or one-to-many relationship set
is represented as a schema with primary key of the
entity set on the “many” side.
26. Contd..
• N-ary relationship set:
Without any arrows: represented as a schema
with union of primary key attributes.
With arrows on one side: represented as a schema
with primary key of the entity set not on the
“arrow” side.
31. Redundancy of Schemas
• The schema corresponding to a relationship set
linking a weak entity set to its identifying entity set
is redundant.
• In the example E-R diagram, the weak entity set
section is dependent on the strong entity set course
via the relationship set sec course.
32. Contd..
• The primary key of section is {course id, sec id, semester,
year} and the primary key of course is course id.
• Since sec_course has no descriptive attributes, the
sec_course schema has attributes {course id, sec id,
semester, year} as the primary key
• Thus, the sec_course schema is redundant.
{course id, sec id, semester, year}
{course id, title, credits}
{course id, sec id, semester, year}
33. Combination of Schemas
• Consider a many-to-one relationship set AB from
entity set A to entity set B.
• Resulting schemas: A, B, and AB
• If the participation of A in the relationship is total;
i.e., every entity A in the entity set B must
participate in the relationship AB, then
– Combine the schemas A and AB to form a single
schema consisting of the union of attributes of
both schemas.
• The primary key of the combined schema is the
primary key of the entity set into whose schema the
relationship set schema was merged.
34. Contd..
• Many-to-one and one-to-many relationship sets that are total
on the many-side can be represented by adding an extra
attribute to the “many” side, containing the primary key of
the “one” side
• Example: Instead of creating a schema for relationship set
inst_dept, add an attribute dept_name to the schema arising
from entity set instructor
36. • ER Diagram Design Issues
– Use of Entity Sets v/s Attributes
– Use of Entity Sets v/s Relationship Sets
– Binary v/s n-ary relationships
– Placement of Relationship Attributes
REDUCTION TO RELATIONAL SCHEMA
• Representation of Strong Entity Sets with simple
attributes
• Representation of Strong Entity Sets with complex
attributes
o Composite attributes
o Multi-valued attributes
o Derived attributes
• Representation of Weak Entity Sets
• Representation of Relationship Sets
o Redundancy of Schemas
o Combination of Schemas
Summary