Solved

Weak and Strong Entities

Posted on 1998-11-27
5
8,415 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 10 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

828 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