Display data in one form from 2 different tables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • huda89
    New Member
    • Oct 2012
    • 31

    Display data in one form from 2 different tables

    Hi,
    I would like to ask, is it possible if i would like to display data in one form from two different table in database? Thank you. =)
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Yes it is. You just need to write your query as a join query or a union query. How you write your query depends on how those two tables are related, you were unclear in that aspect.

    Comment

    • huda89
      New Member
      • Oct 2012
      • 31

      #3
      OK, thank you Rabbit. I will try search for it :)

      Comment

      • solutionwand
        New Member
        • Dec 2012
        • 16

        #4
        Hi,

        yes, please study joins in detail.
        W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

        You will understand the whole concept, you can join any number of tables together

        Comment

        • huda89
          New Member
          • Oct 2012
          • 31

          #5
          Hi solutionwand,
          Thank you for your reply =)
          I have managed to solve that problem.

          Comment

          • gumpagoo
            New Member
            • Dec 2012
            • 3

            #6
            Yes look up joins inner or outer.

            Comment

            • huda89
              New Member
              • Oct 2012
              • 31

              #7
              Thank you gumpagoo =)

              Comment

              • HosseinKhoddami
                New Member
                • Dec 2012
                • 2

                #8
                You can Write
                Select Table1.a , Table2.b
                From Table1 Inner join Table2
                on Table1.Fieldn = Table2.Fieldn


                in CommandText

                Comment

                Working...