If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Generalization and agregation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-23-10, 05:32
sayyed_kamran sayyed_kamran is offline
Registered User
 
Join Date: Jun 2009
Posts: 22
Generalization and agregation

How genralizationa and aggregation in ER Diagram to a physical RDBMS. Can any body have some example of such a scenario?
Reply With Quote
  #2 (permalink)  
Old 12-23-10, 12:29
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by sayyed_kamran View Post
How genralizationa and aggregation in ER Diagram
there are some good resources here --> generalization and aggregation in ER diagram

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 12-24-10, 01:32
sayyed_kamran sayyed_kamran is offline
Registered User
 
Join Date: Jun 2009
Posts: 22
Thnks r937:

Here is my origional problem:

I am going to develope a Help DesK, The user will raise a ticket by selecting some predefind set of services like:

1. Software Maintinance
2. Office equipment Maintinance
3. Newtwork Problem etc etc

I have a table like the following:

ServcieId,
ParentServiceID,
ServcieName,
ServcieProvidingArea
etc etc

Now my problem is there are varying needs of each and every service category like:

If the user selected Networ services , he must mention whether the problme is in WAN, Lan or Ring0 Network. (We call this attribute as Network Type)

If the user select PHOTOCOPIER MAINTINANCE he/she will have to mention
COUNTER (a number that indicates the number of copies done by the photocopier till date )

now the problem i here is that we do the service Netowrk Problem has nothing to do with COUNTER and similarly the Service Photocopier maintinance has nothing to do with Networ Type.

This situation gives me the idea that I should user Generalization/Specialization etc.

1. Am I right in guessing that this is a problem to be solved using Generalization/Specialization?

2. If yes then how to apply Generalization/Aggregation to this problem , If No what is the physible solotuion to the problem

Last edited by sayyed_kamran; 12-24-10 at 05:57.
Reply With Quote
  #4 (permalink)  
Old 12-24-10, 03:53
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by sayyed_kamran View Post
1. Am I write in guessing that this is a problem to be solved using Generalization/Specialization?
yes

see What to do when the same entiry has diffirent attributes
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 12-24-10, 06:02
sayyed_kamran sayyed_kamran is offline
Registered User
 
Join Date: Jun 2009
Posts: 22
Is there some other elagent solution then the one given there? My study/Research shows that this is a problem of Specialization but I cant understand how to solve it with Specialization.
Reply With Quote
  #6 (permalink)  
Old 12-24-10, 08:51
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
that ~is~ an elegant solution

the service type table is the generalization (supertype), and the various detailed service tables are the specializations (subtypes)
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On