Solved

many to many relationship

Posted on 2015-02-06
2
125 Views
Last Modified: 2015-02-09
Hi,
I have three table designed like following:
tab1 <= many-to-may => tab2
tab2 <= many-to-may => tab3.

I know if I have many-to-many relationship between two table, I need a cross (association) table between them.
but, can I have one cross table between the above described three tables?

thanks.
0
Comment
Question by:CCVOIP
2 Comments
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 40594662
You need two cross-reference tables.
0
 
LVL 10

Accepted Solution

by:
HuaMinChen earned 500 total points
ID: 40594907
It will make a mess if you only use one cross table. It can be possible but there would be extra work to check/confirm if the record is for which relationship.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

856 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