Database Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesDatabase Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 13th, 2005, 03:23 PM
b_shaikha4321 b_shaikha4321 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 9 b_shaikha4321 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 15 sec
Reputation Power: 0
Angry One to Many relationship-it doesnt work

Hi,

im trying to do a one to many relationship for the database attached. but it does not seem to work, so can you guys help me out.

I want time in table 1 to have a one to many relationship with time in table 2.
And stylist ID in table 1 to have a one to many relationship with stylist ID in table 2.

Thanx
can u guys please help
Attached Files
File Type: zip db1.zip (16.7 KB, 269 views)

Reply With Quote
  #2  
Old March 13th, 2005, 04:38 PM
Madpawn Madpawn is offline
My beat is correct.
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 339 Madpawn User rank is Private First Class (20 - 50 Reputation Level)Madpawn User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 22 h 3 m 33 sec
Reputation Power: 4
Not to sound like the untrusting sort, but I doubt many people are going to download a .zip file.

You'd have a better chance of being helped if you just posted the text of your CREATE statements.

Reply With Quote
  #3  
Old March 13th, 2005, 07:28 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
I agree...

Quote:
Originally Posted by Madpawn
Not to sound like the untrusting sort, but I doubt many people are going to download a .zip file.


still, here's an example so you'll figure it out yourself!

Table 1 (stylists):
IDstylist [int]
name [varchar]
........
........
........


Table2 (Sons):
IDson [int]
name [varchar]
IDstylist [int] (FK) --> Each stylist has zero or more relatives
.........
.........
.........

If you want to create a one to many relationship, just place the parent Pkey in a child field as an FK. That way, the each stylist may have as many sons as you want!

Good Luck

ANibal.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > One to Many relationship-it doesnt work


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway