dbTalk Databases Forums  

Many to Many related with another Relation

comp.databases.theory comp.databases.theory


Discuss Many to Many related with another Relation in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
goruri_24@yahoo.com
 
Posts: n/a

Default Many to Many related with another Relation - 03-05-2008 , 06:26 PM






|> +----------+ M /----------\ N +----------
+
Quote:
| Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
+----------+ \----------/
+----------+
1 |
Quote:

/----------\
Relation2 |
\----------/


N |
+----------+
Quote:
Entity_3 |
+----------+


i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?


my regard, Shalli..


Reply With Quote
  #2  
Old   
Rob
 
Posts: n/a

Default Re: Many to Many related with another Relation - 03-06-2008 , 12:47 PM






On Mar 5, 5:26 pm, goruri... (AT) yahoo (DOT) com wrote:
Quote:
|> +----------+ M /----------\ N +----------
+
|> | Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
|> +----------+ \----------/
+----------+
1 |
|
|
/----------\
| Relation2 |
\----------/
|
|
N |
+----------+
| Entity_3 |
+----------+

i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?

my regard, Shalli..
There is nothing fundamentally wrong with this. We are "allowed" to
make any kind of relation diagram we want and to implement it using
conventional mappings into SQL. Just be aware that few other database
students/practioners will understand what you've built, and be aware
of all the update consequences of your (meta) model.

That being said, what you have here treats the Junction Table
"Relation1" as an association entity and makes the second Junction
Table "Relation2" as an association entity between Entity_3 and
Relation1.

This is not conventional. Junction Tables (aka association entities)
are usually defined between a pair of entity relations, not an entity
relation (Entity_3) and an association entity (Relation1).

Assuming that referential integrity constraints (ICs) are declared
between each foreign key (2 in Relation1, 2 in Relation2), the model
you've constructed has the unusual property that deletion of an entity
in Entity1 that is referenced by an association entity instance in
Relation1 will either be blocked, or, will "trigger" a deletion
cascade to a referencing association entity in Relation2 and in turn
to an entity in Entity_3. (It can be set up either way, to block or to
trigger.) Likewise for a deletion from an entity in Entity_2
referenced by an association entity in Relation1.

This group doesn't like new schema designs, I believe because their
modeling discliplines don't need them. In particular, every UML-
represented relationship already maps to a schema design, so why muddy
the water with anything new?

Here's another schema design (mine!!) that operates on the same engine
level (i.e., Relational Database Management Engine - RDBME) as yours
and provides capabilities of no current value to those who do their
relational modeling at a higher level of abstraction:

http://www.sfdbs.com/toplevel/fasttrack/fasttrack.shtml

I'm not 100% sure what your intent is with respect to your schema. It
looks like it might provide a useful triggering mechanism in
conjunction with an embedded DBMS database.

Rob



Reply With Quote
  #3  
Old   
Rob
 
Posts: n/a

Default Re: Many to Many related with another Relation - 03-06-2008 , 12:47 PM



On Mar 5, 5:26 pm, goruri... (AT) yahoo (DOT) com wrote:
Quote:
|> +----------+ M /----------\ N +----------
+
|> | Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
|> +----------+ \----------/
+----------+
1 |
|
|
/----------\
| Relation2 |
\----------/
|
|
N |
+----------+
| Entity_3 |
+----------+

i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?

my regard, Shalli..
There is nothing fundamentally wrong with this. We are "allowed" to
make any kind of relation diagram we want and to implement it using
conventional mappings into SQL. Just be aware that few other database
students/practioners will understand what you've built, and be aware
of all the update consequences of your (meta) model.

That being said, what you have here treats the Junction Table
"Relation1" as an association entity and makes the second Junction
Table "Relation2" as an association entity between Entity_3 and
Relation1.

This is not conventional. Junction Tables (aka association entities)
are usually defined between a pair of entity relations, not an entity
relation (Entity_3) and an association entity (Relation1).

Assuming that referential integrity constraints (ICs) are declared
between each foreign key (2 in Relation1, 2 in Relation2), the model
you've constructed has the unusual property that deletion of an entity
in Entity1 that is referenced by an association entity instance in
Relation1 will either be blocked, or, will "trigger" a deletion
cascade to a referencing association entity in Relation2 and in turn
to an entity in Entity_3. (It can be set up either way, to block or to
trigger.) Likewise for a deletion from an entity in Entity_2
referenced by an association entity in Relation1.

This group doesn't like new schema designs, I believe because their
modeling discliplines don't need them. In particular, every UML-
represented relationship already maps to a schema design, so why muddy
the water with anything new?

Here's another schema design (mine!!) that operates on the same engine
level (i.e., Relational Database Management Engine - RDBME) as yours
and provides capabilities of no current value to those who do their
relational modeling at a higher level of abstraction:

http://www.sfdbs.com/toplevel/fasttrack/fasttrack.shtml

I'm not 100% sure what your intent is with respect to your schema. It
looks like it might provide a useful triggering mechanism in
conjunction with an embedded DBMS database.

Rob



Reply With Quote
  #4  
Old   
Rob
 
Posts: n/a

Default Re: Many to Many related with another Relation - 03-06-2008 , 12:47 PM



On Mar 5, 5:26 pm, goruri... (AT) yahoo (DOT) com wrote:
Quote:
|> +----------+ M /----------\ N +----------
+
|> | Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
|> +----------+ \----------/
+----------+
1 |
|
|
/----------\
| Relation2 |
\----------/
|
|
N |
+----------+
| Entity_3 |
+----------+

i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?

my regard, Shalli..
There is nothing fundamentally wrong with this. We are "allowed" to
make any kind of relation diagram we want and to implement it using
conventional mappings into SQL. Just be aware that few other database
students/practioners will understand what you've built, and be aware
of all the update consequences of your (meta) model.

That being said, what you have here treats the Junction Table
"Relation1" as an association entity and makes the second Junction
Table "Relation2" as an association entity between Entity_3 and
Relation1.

This is not conventional. Junction Tables (aka association entities)
are usually defined between a pair of entity relations, not an entity
relation (Entity_3) and an association entity (Relation1).

Assuming that referential integrity constraints (ICs) are declared
between each foreign key (2 in Relation1, 2 in Relation2), the model
you've constructed has the unusual property that deletion of an entity
in Entity1 that is referenced by an association entity instance in
Relation1 will either be blocked, or, will "trigger" a deletion
cascade to a referencing association entity in Relation2 and in turn
to an entity in Entity_3. (It can be set up either way, to block or to
trigger.) Likewise for a deletion from an entity in Entity_2
referenced by an association entity in Relation1.

This group doesn't like new schema designs, I believe because their
modeling discliplines don't need them. In particular, every UML-
represented relationship already maps to a schema design, so why muddy
the water with anything new?

Here's another schema design (mine!!) that operates on the same engine
level (i.e., Relational Database Management Engine - RDBME) as yours
and provides capabilities of no current value to those who do their
relational modeling at a higher level of abstraction:

http://www.sfdbs.com/toplevel/fasttrack/fasttrack.shtml

I'm not 100% sure what your intent is with respect to your schema. It
looks like it might provide a useful triggering mechanism in
conjunction with an embedded DBMS database.

Rob



Reply With Quote
  #5  
Old   
Rob
 
Posts: n/a

Default Re: Many to Many related with another Relation - 03-06-2008 , 12:47 PM



On Mar 5, 5:26 pm, goruri... (AT) yahoo (DOT) com wrote:
Quote:
|> +----------+ M /----------\ N +----------
+
|> | Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
|> +----------+ \----------/
+----------+
1 |
|
|
/----------\
| Relation2 |
\----------/
|
|
N |
+----------+
| Entity_3 |
+----------+

i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?

my regard, Shalli..
There is nothing fundamentally wrong with this. We are "allowed" to
make any kind of relation diagram we want and to implement it using
conventional mappings into SQL. Just be aware that few other database
students/practioners will understand what you've built, and be aware
of all the update consequences of your (meta) model.

That being said, what you have here treats the Junction Table
"Relation1" as an association entity and makes the second Junction
Table "Relation2" as an association entity between Entity_3 and
Relation1.

This is not conventional. Junction Tables (aka association entities)
are usually defined between a pair of entity relations, not an entity
relation (Entity_3) and an association entity (Relation1).

Assuming that referential integrity constraints (ICs) are declared
between each foreign key (2 in Relation1, 2 in Relation2), the model
you've constructed has the unusual property that deletion of an entity
in Entity1 that is referenced by an association entity instance in
Relation1 will either be blocked, or, will "trigger" a deletion
cascade to a referencing association entity in Relation2 and in turn
to an entity in Entity_3. (It can be set up either way, to block or to
trigger.) Likewise for a deletion from an entity in Entity_2
referenced by an association entity in Relation1.

This group doesn't like new schema designs, I believe because their
modeling discliplines don't need them. In particular, every UML-
represented relationship already maps to a schema design, so why muddy
the water with anything new?

Here's another schema design (mine!!) that operates on the same engine
level (i.e., Relational Database Management Engine - RDBME) as yours
and provides capabilities of no current value to those who do their
relational modeling at a higher level of abstraction:

http://www.sfdbs.com/toplevel/fasttrack/fasttrack.shtml

I'm not 100% sure what your intent is with respect to your schema. It
looks like it might provide a useful triggering mechanism in
conjunction with an embedded DBMS database.

Rob



Reply With Quote
  #6  
Old   
Rob
 
Posts: n/a

Default Re: Many to Many related with another Relation - 03-06-2008 , 12:47 PM



On Mar 5, 5:26 pm, goruri... (AT) yahoo (DOT) com wrote:
Quote:
|> +----------+ M /----------\ N +----------
+
|> | Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
|> +----------+ \----------/
+----------+
1 |
|
|
/----------\
| Relation2 |
\----------/
|
|
N |
+----------+
| Entity_3 |
+----------+

i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?

my regard, Shalli..
There is nothing fundamentally wrong with this. We are "allowed" to
make any kind of relation diagram we want and to implement it using
conventional mappings into SQL. Just be aware that few other database
students/practioners will understand what you've built, and be aware
of all the update consequences of your (meta) model.

That being said, what you have here treats the Junction Table
"Relation1" as an association entity and makes the second Junction
Table "Relation2" as an association entity between Entity_3 and
Relation1.

This is not conventional. Junction Tables (aka association entities)
are usually defined between a pair of entity relations, not an entity
relation (Entity_3) and an association entity (Relation1).

Assuming that referential integrity constraints (ICs) are declared
between each foreign key (2 in Relation1, 2 in Relation2), the model
you've constructed has the unusual property that deletion of an entity
in Entity1 that is referenced by an association entity instance in
Relation1 will either be blocked, or, will "trigger" a deletion
cascade to a referencing association entity in Relation2 and in turn
to an entity in Entity_3. (It can be set up either way, to block or to
trigger.) Likewise for a deletion from an entity in Entity_2
referenced by an association entity in Relation1.

This group doesn't like new schema designs, I believe because their
modeling discliplines don't need them. In particular, every UML-
represented relationship already maps to a schema design, so why muddy
the water with anything new?

Here's another schema design (mine!!) that operates on the same engine
level (i.e., Relational Database Management Engine - RDBME) as yours
and provides capabilities of no current value to those who do their
relational modeling at a higher level of abstraction:

http://www.sfdbs.com/toplevel/fasttrack/fasttrack.shtml

I'm not 100% sure what your intent is with respect to your schema. It
looks like it might provide a useful triggering mechanism in
conjunction with an embedded DBMS database.

Rob



Reply With Quote
  #7  
Old   
Rob
 
Posts: n/a

Default Re: Many to Many related with another Relation - 03-06-2008 , 12:47 PM



On Mar 5, 5:26 pm, goruri... (AT) yahoo (DOT) com wrote:
Quote:
|> +----------+ M /----------\ N +----------
+
|> | Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
|> +----------+ \----------/
+----------+
1 |
|
|
/----------\
| Relation2 |
\----------/
|
|
N |
+----------+
| Entity_3 |
+----------+

i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?

my regard, Shalli..
There is nothing fundamentally wrong with this. We are "allowed" to
make any kind of relation diagram we want and to implement it using
conventional mappings into SQL. Just be aware that few other database
students/practioners will understand what you've built, and be aware
of all the update consequences of your (meta) model.

That being said, what you have here treats the Junction Table
"Relation1" as an association entity and makes the second Junction
Table "Relation2" as an association entity between Entity_3 and
Relation1.

This is not conventional. Junction Tables (aka association entities)
are usually defined between a pair of entity relations, not an entity
relation (Entity_3) and an association entity (Relation1).

Assuming that referential integrity constraints (ICs) are declared
between each foreign key (2 in Relation1, 2 in Relation2), the model
you've constructed has the unusual property that deletion of an entity
in Entity1 that is referenced by an association entity instance in
Relation1 will either be blocked, or, will "trigger" a deletion
cascade to a referencing association entity in Relation2 and in turn
to an entity in Entity_3. (It can be set up either way, to block or to
trigger.) Likewise for a deletion from an entity in Entity_2
referenced by an association entity in Relation1.

This group doesn't like new schema designs, I believe because their
modeling discliplines don't need them. In particular, every UML-
represented relationship already maps to a schema design, so why muddy
the water with anything new?

Here's another schema design (mine!!) that operates on the same engine
level (i.e., Relational Database Management Engine - RDBME) as yours
and provides capabilities of no current value to those who do their
relational modeling at a higher level of abstraction:

http://www.sfdbs.com/toplevel/fasttrack/fasttrack.shtml

I'm not 100% sure what your intent is with respect to your schema. It
looks like it might provide a useful triggering mechanism in
conjunction with an embedded DBMS database.

Rob



Reply With Quote
  #8  
Old   
Rob
 
Posts: n/a

Default Re: Many to Many related with another Relation - 03-06-2008 , 12:47 PM



On Mar 5, 5:26 pm, goruri... (AT) yahoo (DOT) com wrote:
Quote:
|> +----------+ M /----------\ N +----------
+
|> | Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
|> +----------+ \----------/
+----------+
1 |
|
|
/----------\
| Relation2 |
\----------/
|
|
N |
+----------+
| Entity_3 |
+----------+

i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?

my regard, Shalli..
There is nothing fundamentally wrong with this. We are "allowed" to
make any kind of relation diagram we want and to implement it using
conventional mappings into SQL. Just be aware that few other database
students/practioners will understand what you've built, and be aware
of all the update consequences of your (meta) model.

That being said, what you have here treats the Junction Table
"Relation1" as an association entity and makes the second Junction
Table "Relation2" as an association entity between Entity_3 and
Relation1.

This is not conventional. Junction Tables (aka association entities)
are usually defined between a pair of entity relations, not an entity
relation (Entity_3) and an association entity (Relation1).

Assuming that referential integrity constraints (ICs) are declared
between each foreign key (2 in Relation1, 2 in Relation2), the model
you've constructed has the unusual property that deletion of an entity
in Entity1 that is referenced by an association entity instance in
Relation1 will either be blocked, or, will "trigger" a deletion
cascade to a referencing association entity in Relation2 and in turn
to an entity in Entity_3. (It can be set up either way, to block or to
trigger.) Likewise for a deletion from an entity in Entity_2
referenced by an association entity in Relation1.

This group doesn't like new schema designs, I believe because their
modeling discliplines don't need them. In particular, every UML-
represented relationship already maps to a schema design, so why muddy
the water with anything new?

Here's another schema design (mine!!) that operates on the same engine
level (i.e., Relational Database Management Engine - RDBME) as yours
and provides capabilities of no current value to those who do their
relational modeling at a higher level of abstraction:

http://www.sfdbs.com/toplevel/fasttrack/fasttrack.shtml

I'm not 100% sure what your intent is with respect to your schema. It
looks like it might provide a useful triggering mechanism in
conjunction with an embedded DBMS database.

Rob



Reply With Quote
  #9  
Old   
Rob
 
Posts: n/a

Default Re: Many to Many related with another Relation - 03-06-2008 , 12:47 PM



On Mar 5, 5:26 pm, goruri... (AT) yahoo (DOT) com wrote:
Quote:
|> +----------+ M /----------\ N +----------
+
|> | Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
|> +----------+ \----------/
+----------+
1 |
|
|
/----------\
| Relation2 |
\----------/
|
|
N |
+----------+
| Entity_3 |
+----------+

i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?

my regard, Shalli..
There is nothing fundamentally wrong with this. We are "allowed" to
make any kind of relation diagram we want and to implement it using
conventional mappings into SQL. Just be aware that few other database
students/practioners will understand what you've built, and be aware
of all the update consequences of your (meta) model.

That being said, what you have here treats the Junction Table
"Relation1" as an association entity and makes the second Junction
Table "Relation2" as an association entity between Entity_3 and
Relation1.

This is not conventional. Junction Tables (aka association entities)
are usually defined between a pair of entity relations, not an entity
relation (Entity_3) and an association entity (Relation1).

Assuming that referential integrity constraints (ICs) are declared
between each foreign key (2 in Relation1, 2 in Relation2), the model
you've constructed has the unusual property that deletion of an entity
in Entity1 that is referenced by an association entity instance in
Relation1 will either be blocked, or, will "trigger" a deletion
cascade to a referencing association entity in Relation2 and in turn
to an entity in Entity_3. (It can be set up either way, to block or to
trigger.) Likewise for a deletion from an entity in Entity_2
referenced by an association entity in Relation1.

This group doesn't like new schema designs, I believe because their
modeling discliplines don't need them. In particular, every UML-
represented relationship already maps to a schema design, so why muddy
the water with anything new?

Here's another schema design (mine!!) that operates on the same engine
level (i.e., Relational Database Management Engine - RDBME) as yours
and provides capabilities of no current value to those who do their
relational modeling at a higher level of abstraction:

http://www.sfdbs.com/toplevel/fasttrack/fasttrack.shtml

I'm not 100% sure what your intent is with respect to your schema. It
looks like it might provide a useful triggering mechanism in
conjunction with an embedded DBMS database.

Rob



Reply With Quote
  #10  
Old   
Rob
 
Posts: n/a

Default Re: Many to Many related with another Relation - 03-06-2008 , 12:47 PM



On Mar 5, 5:26 pm, goruri... (AT) yahoo (DOT) com wrote:
Quote:
|> +----------+ M /----------\ N +----------
+
|> | Entity_1 | <---------- | Relation1 | ---------> | Entity_2 |
|> +----------+ \----------/
+----------+
1 |
|
|
/----------\
| Relation2 |
\----------/
|
|
N |
+----------+
| Entity_3 |
+----------+

i have a lil doubt bout it, is it allow if we make that kinda relation
diagram ?

coz ive found a pic diagram like that, where the relation1 will become
a New Entity after Mapping, n that new Entity will related to
Relation2..

is there any based theory that can explain bout that ?

my regard, Shalli..
There is nothing fundamentally wrong with this. We are "allowed" to
make any kind of relation diagram we want and to implement it using
conventional mappings into SQL. Just be aware that few other database
students/practioners will understand what you've built, and be aware
of all the update consequences of your (meta) model.

That being said, what you have here treats the Junction Table
"Relation1" as an association entity and makes the second Junction
Table "Relation2" as an association entity between Entity_3 and
Relation1.

This is not conventional. Junction Tables (aka association entities)
are usually defined between a pair of entity relations, not an entity
relation (Entity_3) and an association entity (Relation1).

Assuming that referential integrity constraints (ICs) are declared
between each foreign key (2 in Relation1, 2 in Relation2), the model
you've constructed has the unusual property that deletion of an entity
in Entity1 that is referenced by an association entity instance in
Relation1 will either be blocked, or, will "trigger" a deletion
cascade to a referencing association entity in Relation2 and in turn
to an entity in Entity_3. (It can be set up either way, to block or to
trigger.) Likewise for a deletion from an entity in Entity_2
referenced by an association entity in Relation1.

This group doesn't like new schema designs, I believe because their
modeling discliplines don't need them. In particular, every UML-
represented relationship already maps to a schema design, so why muddy
the water with anything new?

Here's another schema design (mine!!) that operates on the same engine
level (i.e., Relational Database Management Engine - RDBME) as yours
and provides capabilities of no current value to those who do their
relational modeling at a higher level of abstraction:

http://www.sfdbs.com/toplevel/fasttrack/fasttrack.shtml

I'm not 100% sure what your intent is with respect to your schema. It
looks like it might provide a useful triggering mechanism in
conjunction with an embedded DBMS database.

Rob



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.