Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



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

Posts: 93
Trades: 0
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?

Last edited by drew22299; 04-02-2008 at 01:10 PM..
drew22299 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-02-2008, 02:19 PM Re: Do I need a joining table for these two tables?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-05-2008, 02:05 AM Re: Do I need a joining table for these two tables?
Ultra Talker

Posts: 310
Trades: 0
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.
dman_2007 is offline
Reply With Quote
View Public Profile
 
Old 04-08-2008, 12:41 PM Re: Do I need a joining table for these two tables?
Average Talker

Posts: 18
Name: ohsuria
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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.12996 seconds with 12 queries