Results 1 to 2 of 2

Thread: Reporting over Account field in Accounts

  1. #1
    REByers is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    North West England
    Posts
    182

    Question Reporting over Account field in Accounts

    I have created a one to many relationship field in the accounts module.

    It's purpose is to link an account to it's sales channel.

    I now want to report over this field, so that I can pull up a list of customer accounts for a channel.

    I just get a SQL error in the erports module though.

    Here's the error, and all help greatly appreciated!!! The query just looks for records with none baln kentries inthe field.

    Error executing query Query Failed:SELECT accounts.id primaryid ,accounts.name accounts_name ,accounts_cstm.account_id_c accounts_cstm_account_id_c ,accounts.name accounts_name,accounts.description accounts_description FROM accounts LEFT JOIN accounts_cstm accounts_cstm ON accounts.id = accounts_cstm.id_c LEFT JOIN accounts accounts ON accounts.id = accounts_cstm.account_id_c WHERE ((( accounts_cstm.account_id_c IS NOT NULL AND accounts_cstm.account_id_c<>'' ) )) AND accounts.deleted=0 LIMIT 0,100::MySQL error 1066: Not unique table/alias: 'accounts'

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Reporting over Account field in Accounts

    I cannot reproduce this locally, can you either give us more details (report details and/or screen shots) or submit a case on this and we will figure it out for you.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2008-07-01, 08:21 PM
  2. Replies: 0
    Last Post: 2007-07-27, 01:50 PM
  3. Replies: 0
    Last Post: 2007-07-27, 01:47 PM
  4. Reporting issue with Custom Date Field
    By sacramentojoe in forum Help
    Replies: 2
    Last Post: 2007-06-07, 05:23 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
  •