Reply
Do I need a joining table for these two tables?
Old 04-02-2008, 11:59 AM Do I need a joining table for these two tables?
drew22299's Avatar
Skilled Talker

Posts: 89
Location: Wiltshire, UK
Hi,

Any experts who can answer this? (prob quite a simple question!)

I have a Members table and an Attendance table and have some questions: If I want a one to many relationship since one member can have many attendances, do I need a joining table?
__________________
www.hotlista.co.uk

Last edited by drew22299 : 04-02-2008 at 12:10 PM.
drew22299 is offline
Reply With Quote
View Public Profile Visit drew22299's homepage!
 
When You Register, These Ads Go Away!
Old 04-02-2008, 01:19 PM Re: Do I need a joining table for these two tables?
chrishirst's Avatar
Super Moderator

Posts: 13,519
Location: Blackpool. UK
twice as long as it is from one end to the middle.



OR

It all depends on how you structure the tables.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-05-2008, 01:05 AM Re: Do I need a joining table for these two tables?
Ultra Talker

Posts: 307
Yes, you'd need a way to join the tables. You can do it either with a joining table created specifically for that pupose or you add member id in each attendance table record itself.
__________________
tiny url
dman_2007 is offline
Reply With Quote
View Public Profile Visit dman_2007's homepage!
 
Old 04-08-2008, 11:41 AM Re: Do I need a joining table for these two tables?
Novice Talker

Posts: 18
Name: ohsuria
yes you need to join the table or you can use this query
Code:
select * from attendance where attendance.memberid in (select memberid from members where...)
ohsuria is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Do I need a joining table for these two tables?
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13759 seconds with 12 queries