DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Posts
    111

    Table relationships

    Ok. This should be a easy one.

    I have three tables: Program, project and folder. A program can have multiple projects and a project can have multiple folders. And, a program can multiple folders. What is the best way to set up this type of relationship?

    Laurence -

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    In the in all three tables, establish a field for program code. This will link program to the other two.

    In the project and folder table, set up a field for project code. This will link those two at that level.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. MSDE create a relationship error on pc.
    By PineTree in forum Database
    Replies: 8
    Last Post: 01-05-2006, 12:15 PM
  2. Table relationships in Access database design-
    By Marcus Koontz in forum VB Classic
    Replies: 2
    Last Post: 03-30-2002, 08:03 AM
  3. Printing db table relationships
    By sheryl kemp in forum Database
    Replies: 1
    Last Post: 01-31-2002, 04:54 PM
  4. Stylistic question about table relationships
    By James Berry in forum Database
    Replies: 0
    Last Post: 12-27-2001, 01:51 PM
  5. Replies: 0
    Last Post: 04-28-2000, 09:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links