Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Weak and Strong Entities

Posted on 1998-11-27
5
Medium Priority
?
8,486 Views
Last Modified: 2006-11-17
Description of Weak and Strong Entities.
0
Comment
Question by:majorjohn
5 Comments
 
LVL 2

Expert Comment

by:pjmaze
ID: 1026018
hi,

The existance of a weak entity depends on the existence of a strong entity; it must relate to the strong via a on-to-many relationship set.

The primary key of a weak entity is formed by the primary key of the strong entity on which the weak entity set is existence depend, plus the weak entity set’s discriminator (partial Key).



A strong entity is one that has its own primary key and dont depand on any other entitie.

If you need more info, ask ..

see ya
0
 
LVL 1

Author Comment

by:majorjohn
ID: 1026019
Yes I need some more information with example.

Thanks,
0
 

Expert Comment

by:camazorro
ID: 1026020
Hi MajorJohn

Typical Expample of weak and strong entity

EMPLOYEE and DEPENDANTS

The entity DEPENDANTS depends of the entity EMPLOYEE
DEPENDANTS = Wife, childrens, family.

In a Company DB the DEPENDANTS entity can exist by it self. In these case we make the relation DEPENDANTS --<depends>-- EMPLOYEE

Bye Bye
0
 
LVL 3

Expert Comment

by:P_S_Price
ID: 1026021
The above model may not be a true example. It could also be possible for a dependent to be an Employee!! Nepotism is best kept in the family!!
0
 
LVL 3

Accepted Solution

by:
traygreen earned 30 total points
ID: 1026022
Strong entity...
Table Orders
ID        int      Primary Key
OrderNum  varchar
OrderDate datetime

Table Items
ID        int      Primary Key
Desc      varchar

weak....
Table OrderDetail
OrderID   int      Foreign Key (references Order.ID)
ItemID    int      Foreign Key (references Item.ID)
Qty       int

In this example the items and orders tables are core level or "Stong" entities.  They stand alone without requiring other defined objects.
The Order detail is a "Weak" entity as it requires the existence of both an order and item to exist.

Is this what you are looking for?
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question