dbTalk Databases Forums  

Junction table

comp.databases comp.databases


Discuss Junction table in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
annalissa
 
Posts: n/a

Default Junction table - 07-05-2009 , 12:18 AM






Hi all,

i saw an explanation of junction table here:-
http://megocode3.wordpress.com/2008/...unction-table/
how correct is this explanation ?

but SELECT StudentName, RoomNumber
FROM StudentClassroom in this query

SELECT StudentName, RoomNumber
FROM StudentClassroom
JOIN Students ON Students.StudentID = StudentClassroom.StudentID
JOIN Classrooms ON Classrooms.ClassroomID = StudentClassroom.ClassroomID

doesn't seem to be correct is n't it?

Reply With Quote
  #2  
Old   
--CELKO--
 
Posts: n/a

Default Re: Junction table - 07-08-2009 , 03:57 PM






Quote:
I'm not sure when "junction" terminology began (or even if it is part ofthe current standard), but it has become fashionable to refer to a table that defines a many-to-many relation and whose key is composed of the foreign keys from the related tables as a "junction".
I think it was used in IDMS or one of the early network DBs in the
1970's; we had it in the ANSI X3H2 NDL draft document that never saw
the light of day. The "parent-child" terminology was done as one way
pointers from one record to another record in a second file (think
IMS), but the junction tables had two-way pointers so you could
navigate in both directions.

I probably ought to put some of this history of bad terminology in one
of my books ...

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.