Results 1 to 2 of 2

Thread: Dataset with bridge table relationship

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    208

    Dataset with bridge table relationship

    Hi,

    I have a many to many relationship between 2 tables so therefore I have created a bridge table, to produce a one to many relationship.
    My questions is how to I code this, so it shows in a datagrid?

  2. #2
    Frenzied Member Campion's Avatar
    Join Date
    Jul 2007
    Location
    UT
    Posts
    1,098

    Re: Dataset with bridge table relationship

    You will have to use SQL to get a resultset. Something along the lines of this:

    Code:
    SELECT Table1.ColumnB, Table1.ColumnC, Table2.ColumnB, Table2.ColumnC FROM Table1, Table2 WHERE Table1.ColumnA = JoinTable.TestA AND Table2.ColumnA = JoinTable.TestB
    From my burrow, 2 feet under.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width