SugarCRM 5c and Zucker Reports 1.8g
Current Code to Produce Output
SELECT notes.date_entered, notes.date_modified, notes.name, notes.description, notes.parent_type, notes.parent_id
FROM notes
WHERE notes.deleted = 0
AND notes.created_by = '$SUGAR_USER_ID'
ORDER BY notes.date_entered;
Header Output
date_entered date_modified name description parent_type parent_id
parent_type contains WHAT it is related to such as CONTACTS or LEADS OR ACCOUNTS, parent_id CONTAINS the id number of the CONTACTS or LEADS OR ACCOUNTS.
All I want to do is ADD the LEAD or ACCOUNT or CONTACTS name to my output. I know can JOIN but I do not need all that information, just ONE, maybe two fields. I have tried IF() and IF..ELSEIF but I get errors, I assume because I am not formatting the code correclty.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks