Solved

Weak and Strong Entities

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

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now