Not sure if this answers your question exactly, but there are several join related sql tutorials in the documentation: http://wiki.dreamfactory.com/DreamFactory/Tutorials#SQL-Specific_Data
If these methods don't address your concern, then you will need to use a stored procedure or script.