in

InaPlex Forums

Forums and downloads for InaPlex customers and partners.

Select Source Records from multiple tables

Last post 03-13-2009 21:54 by admin. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-13-2009 0:55

    • DougW
    • Top 10 Contributor
    • Joined on 03-25-2008
    • Posts 9

    Select Source Records from multiple tables

    Inaport 7 Build 8130, SLX 7.2

    My knowldge of SQL is lacking. When attempting to pull all fields from two tables, Inaport crashes. This is my selection string

    SELECT  ACCOUNT.*, CONTACT.*  FROM  ACCOUNT, CONTACT WHERE ACCOUNT.ACCOUNTID = CONTACT.ACCOUNTID

    Can someone please correct this?

     

  • 03-13-2009 2:07 In reply to

    Re: Select Source Records from multiple tables

    Hi Doug

    There is nothing particularly wrong with that SQL, though I would normally write it as:

    SELECT a.*, c.* FROM account a INNER JOIN contact c ON a.accountid = c.accountid

    I just tested your SQL against SalesLogix in Inaport and it was fine.

    When you say you get a crash, what is happening? Perhaps generate a debug log and mail to support@inaplex.com

    Regards

    Admin

    Filed under:
  • 03-13-2009 19:00 In reply to

    • DougW
    • Top 10 Contributor
    • Joined on 03-25-2008
    • Posts 9

    Re: Select Source Records from multiple tables

    The Inner Join solved the problem for me. Thanks!

    When I used the simpler Select statement, Inaport would either exit immediately without error or pull up SQL Server Enterprise Manager. Since it's now fixed, I won't bother to replicate the issue as it may be particular to our environment.

  • 03-13-2009 21:54 In reply to

    Re: Select Source Records from multiple tables

    Hi Doug

    The statements should have been equivalent. Perhaps something going on in the SQL optimazation in the server.

    Regards

    Admin

Page 1 of 1 (4 items)
InaPlex Limited 2011