JOIN Queries
The CData JDBC Driver for SurveyMonkey supports standard SQL joins like the following examples.
Inner Join
An inner join selects only rows from both tables that match the join condition:
SELECT MySurvey_Questions.QuestionFamily, MySurvey_Responses.ChoiceId FROM MySurvey_Questions, MySurvey_Responses WHERE MySurvey_Questions.QuestionId=MySurvey_Responses.QuestionId
Left Join
A left join selects all rows in the FROM table and only matching rows in the JOIN table:
SELECT MySurvey_Questions.QuestionFamily, MySurvey_Responses.ChoiceId FROM MySurvey_Questions LEFT OUTER JOIN MySurvey_Responses ON MySurvey_Questions.QuestionId=MySurvey_Responses.QuestionId