ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Software Design  >>  OOAD
 
 


 

 
 Design Patterns interview questions  Design Patterns Interview Questions
 UML interview questions  UML Interview Questions
 OOAD interview questions  OOAD Interview Questions
 Software Design Tools interview questions  Software Design Tools Interview Questions
 Requirements Management interview questions  Requirements Management Interview Questions
 Project Planning interview questions  Project Planning Interview Questions
 Project Management interview questions  Project Management Interview Questions
 Software Design AllOther interview questions  Software Design AllOther Interview Questions
Question
How to resolve many to many relationship?
 Question Submitted By :: Siva
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to resolve many to many relationship?
Answer
# 1
Have an association/associative class
 
Is This Answer Correct ?    0 Yes 1 No
Pradeep
 
  Re: How to resolve many to many relationship?
Answer
# 2
An example of a many-to-many relationship in the greenhouse
plant application is between the Plant and Additive
entities. Each plant may be treated with one or more
Additives. Each Additive may be given to one or more Plants.
The ERD for this relationship is shown below.

Many-to-many relationships cannot be directly converted into
database tables and relationships. This is a restriction of
the database systems, not of the application. The
development team has to resolve the many-to-many
relationship before it can continue with the database
development. If you identify a many-to-many relationship in
your analysis meeting, you should try to resolve it in the
meeting. The participants can usually find a fitting entity
to provide the resolution.

To resolve a many-to-many relationship means to convert it
into two one-to-many, many-to-one relationships. A new
entity comes between the two original entities, and this new
entity is referred to as an intersection entity. It allows
for every possible matched occurrence of the two entities.
Sometimes the intersection entity represents a point or
passage in time.

The Plant-Additive many-to-many relationship above is
resolved in the following ERD diagram:

With these new relationships, Plant is now related to
Treatment. Each Plant may be given one or more Treatments.
Each Treatment must be given to one and only one Plant.
Additive is also related to Treatment. Each Additive may be
used in one or more Treatments. Each Treatment must be
comprised of one and only one Additive. With these two new
relationships, Treatment cannot exist without Plant and
Additive. Treatment can occur multiple times, once for each
treatment of a plant additive. To keep each Treatment
unique, a new attribute is defined. Treatment now has
application date and time attributes. They are the unique
identifiers or the primary key of Treatment. Other
attributes of Treatment are quantity and potency of the
additive.
 
Is This Answer Correct ?    1 Yes 0 No
Balaji
 
 
 
  Re: How to resolve many to many relationship?
Answer
# 3
There are 4 kinds of relationships
1.Dependancy
2.Association
3.Generalization
4.Realization
 
Is This Answer Correct ?    0 Yes 1 No
Praveen Kumar
 

 
 
 
Other OOAD Interview Questions
 
  Question Asked @ Answers
 
What are associative classes? Protech2
Why is planning too much up front a mistake in an OOSAD project? Infosys2
what is meant by "method-wars"?  2
What is guard condition? Syntel2
Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)?  1
What is SRD(System Requirement document), FSD (Functional Specification Document), RSD (Requiremnet specific document)? If these are different document wat are there contents? HP1
When do you prefer to use composition than aggregation? Protech1
What is inheritance? Protech3
Suppose a class acts an Actor in the problem domain, how to represent it in the static model?  1
Difference: Sequence Diagrams, Collaboration Diagrams ? Protech1
Difference: Activity Diagram and Sequence Diagram Protech1
What are the good practices to use while designing for reuse? Protech1
How do you represent static members and abstract classes in Class Diagram? Protech1
Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)? Protech2
Why should project managers complete hard problems first in an OOSAD project?  1
Difference: 'uses', 'extends', 'includes' Protech2
Who is an Actor?  3
What is a Persistent, Transient Object? Protech2
Explian following terms: Constraint Rules, Design by contract. Protech1
Differentiate between Aggregation and containment?  1
 
For more OOAD Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com