what is the "n" for?

Posts   
 
    
bertcord avatar
bertcord
User
Posts: 206
Joined: 01-Dec-2003
# Posted on: 16-Jun-2004 14:17:04   

Ok so relations are defined as

1:1 - (one to one) 1:n - (one to many) m:1 - (many to one) m:n - (many to many)

I was wondering why "n" and not “m”

1:1 - (one to one) 1:m - (one to many) m:1 - (many to one) m:m - (many to many)

not that it’s a big deal just curios..

Thanks Bert

netclectic avatar
netclectic
User
Posts: 255
Joined: 28-Jan-2004
# Posted on: 16-Jun-2004 14:27:57   

n is just a common replacement for 'any number', e.g. n tier, n^0=1, etc.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39752
Joined: 17-Aug-2003
# Posted on: 16-Jun-2004 14:34:30   

bertcord wrote:

Ok so relations are defined as

1:1 - (one to one) 1:n - (one to many) m:1 - (many to one) m:n - (many to many)

I was wondering why "n" and not “m”

1:1 - (one to one) 1:m - (one to many) m:1 - (many to one) m:m - (many to many)

not that it’s a big deal just curios..

m and n are used to illustrate that they don't have to be the same necessarily. an m:n relation means that there are probably more 'm's than 'n's, a m:m relation suggests that there are always the same objects on either side of the relation. I think that's the reason. simple_smile (but I'm just guessing here, this is the reason why I use m:n and not n:n or m:m simple_smile )

Frans Bouma | Lead developer LLBLGen Pro