Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old May 18th, 2009, 11:33 AM
LKBrwn_DBA's Avatar
LKBrwn_DBA LKBrwn_DBA is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2006
Posts: 507 LKBrwn_DBA User rank is First Lieutenant (10000 - 20000 Reputation Level)LKBrwn_DBA User rank is First Lieutenant (10000 - 20000 Reputation Level)LKBrwn_DBA User rank is First Lieutenant (10000 - 20000 Reputation Level)LKBrwn_DBA User rank is First Lieutenant (10000 - 20000 Reputation Level)LKBrwn_DBA User rank is First Lieutenant (10000 - 20000 Reputation Level)LKBrwn_DBA User rank is First Lieutenant (10000 - 20000 Reputation Level)LKBrwn_DBA User rank is First Lieutenant (10000 - 20000 Reputation Level)LKBrwn_DBA User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 12 h 45 m 19 sec
Reputation Power: 192
Talking Hierarchy?

This Data Model is a general "picture" of what everyone has been trying to explain to you.
__________________

Reply With Quote
  #17  
Old May 18th, 2009, 07:44 PM
webdbguy webdbguy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 13 webdbguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 40 m 5 sec
Reputation Power: 0
Quote:
Originally Posted by LKBrwn_DBA
This Data Model is a general "picture" of what everyone has been trying to explain to you.


Yeh I understand what people are saying, but thanks anyway for the diagramatic version

However, no one has answered the question directly as to whether what I want to achieve is possible with the use of 'normal' (one-to-many, primary key to foreign key) relationships only. Say I wanted to create such a relationship in Access (forget the whole SQL stuff for a moment) without the use of self-joins does anyone know if this is possible, and if so how it would be done? That would conclude this thread once and for all lol

Reply With Quote
  #18  
Old May 18th, 2009, 07:53 PM
MadDogBrown MadDogBrown is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2009
Posts: 735 MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 4 h 44 m
Reputation Power: 516
Of course it is possible to create 2 entities in a one to many relationship.

Manager -*> Employee.

Done.

Consider some of the potential drawbacks of this approach:
You've essentially "embedded" a rigid one-many hierarchy on a situation that MAY require something more flexible:

E.G Consider what happens when the design needs to account for your manager's manager's manager?

That said, I've seen this type of relationship used effectively in these situations: it all depends on application scope and design goals.

THe benefits of a self-referential model really show themselves when the hierarchy may get "deeper" over the lifetime of the software.

Reply With Quote
  #19  
Old May 18th, 2009, 11:03 PM
clivew clivew is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 1,124 clivew User rank is Captain (20000 - 30000 Reputation Level)clivew User rank is Captain (20000 - 30000 Reputation Level)clivew User rank is Captain (20000 - 30000 Reputation Level)clivew User rank is Captain (20000 - 30000 Reputation Level)clivew User rank is Captain (20000 - 30000 Reputation Level)clivew User rank is Captain (20000 - 30000 Reputation Level)clivew User rank is Captain (20000 - 30000 Reputation Level)clivew User rank is Captain (20000 - 30000 Reputation Level)clivew User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 6 Days 1 h 39 m 23 sec
Reputation Power: 272
Sooner or later you should ask yourself the question:

Why am I spending so much time and effort trying to get an answer to what so many people are telling me is the wrong question?

Either there is some deeper issue going on that you are not articulating or you are just obsessing.

Clive

Reply With Quote
  #20  
Old May 20th, 2009, 09:27 AM
webdbguy webdbguy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 13 webdbguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 40 m 5 sec
Reputation Power: 0
Addressing the whole self-relationship idea, wouldn't that mean that the table would not be in Boyce-Codd's 3NF (Third Normal Form (all fields are independent of eachother))?

Here are the tables I have: tables. I have tried joining them in all sorts of forms but haven't been able to join them so that they work towards my goal...

Reply With Quote
  #21  
Old May 20th, 2009, 10:03 AM
MadDogBrown MadDogBrown is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2009
Posts: 735 MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level)MadDogBrown User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 4 h 44 m
Reputation Power: 516
Quote:
Originally Posted by webdbguy
Addressing the whole self-relationship idea, wouldn't that mean that the table would not be in Boyce-Codd's 3NF (Third Normal Form (all fields are independent of eachother))?


The tuple is at the heart of all normalization concerns.

Read Celko's "SQL for Smarties" - there are several self-referential examples in there.

I'm not sure why you are so hung up on this issue.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Database Design


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
Stay green...Green IT