Results 1 to 2 of 2

Thread: how join works on 4 tables with same field

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    7

    how join works on 4 tables with same field

    i have 4 tables with common field voucherno in all
    how can i match every table voucher with a one main table.

    SELECT distinct voucher.voucherno,(opn.voucherfigure)as opn,(aakera.voucherfigure)as aakera FROM voucher INNER JOIN (opn INNER JOIN (aakera inner join (ring inner join forecast on forecast.voucherno=ring.voucherno) On ring.voucherno=aakera.voucherno) on aakera.voucherno=opn.voucherno ) ON voucher.voucherno=opn.voucherno

  2. #2
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Re: how join works on 4 tables with same field

    u do like join table 1 by 2 then 2 by 3 and then 3 by 4.

    I think it will be okay.
    Thanks and Regards,

    Muhammad Abbas

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