Results 1 to 3 of 3

Thread: Help writing SQL queries for ZuckerReports

  1. #1
    1kether1 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    11

    Default Help writing SQL queries for ZuckerReports

    Can anybody point me in the right direction? I'm a complete beginner with SQL and I'm trying to develop reports with ZuckerReports. Is there a guide somewhere on here that shows how to access SUGAR tables and fields with sql statements?

    I would sure appreciate anybody's help on this--thanks much.

    Louis

  2. #2
    pterrell is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    31

    Default Re: Help writing SQL queries for ZuckerReports

    I suggest that you tackle this in two ways: tutorials and builders.

    If you don't have a basic understanding of SQL, you should pick up a simle book that explains Selects, Joins, Key fields, and the like. Sams Teach Yourself SQL in 10 Minutes has been sitting on my reference shelf for several years and is well-thumbed. You can also Google for "SQL tutorial" and find many good sites.

    Then use a SQL query buider to look at the SugarCRM database and see the tables and piece together how they work. Most of the query builder tools have a free 30-day trial. I find Navicat to be a good choice. The free phpMyAdmin that is part of the complete install of SugarCRM has a query builder, but it only builds queries on a single talbe without a join. (Someone can correct me if I'm wroing about this feature.) And your reports probably need to combine tables--the one I'm working on now combines data from leads, leads_audit, and leads_cstm.

    The query builders generate the SQL code that you can then paste into iReports.

    Good luck!

  3. #3
    1kether1 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    11

    Default Re: Help writing SQL queries for ZuckerReports

    Thanks, Pterrell. I'm off to check out Navicat.

    SQL seems pretty straightforward, I'm just unclear about how to address SUGAR's tables--particularly things like left and right joins, and intermediate tables that seem to link two or more tables together for queries.

    Thanks again....
    Louis

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2008-02-22, 04:25 PM
  2. SQL Express 2005 Step 7 cannot connect to server
    By CRMNOW in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-02-02, 07:49 PM
  3. Optimizing SQL queries for listing
    By bernd.neukamp in forum Help
    Replies: 13
    Last Post: 2006-11-23, 06:21 AM
  4. Replies: 4
    Last Post: 2006-09-29, 04:15 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
  •