Use of SQL in Sage 100 Contractor Report Writer

SUGGESTED

Can anyone tell me how to create a calculated field that has a SQL statement bringing in data from an unrelated table?  I've looked at fields on other reports that I think are doing approximately the same thing but when I modify the SQL statement I keep getting errors.  I have yet to find training that addresses the SQL syntax for Sage 100 C and gives examples.