Skip to content

Instantly share code, notes, and snippets.

@webspectyler
Created December 9, 2013 19:05
Show Gist options
  • Save webspectyler/7878876 to your computer and use it in GitHub Desktop.
Save webspectyler/7878876 to your computer and use it in GitHub Desktop.
Clicks and 90 day survey responses
# (Below are the queries that generated these files, for my reference)
SELECT `247_response`. * , `247_contract`.`title`
FROM `247_response`
LEFT JOIN `247_contract` ON `247_response`.`contract_id` = `247_contract`.`contract_id`
ORDER BY `response_id` DESC
# ^ Survey Responses
SELECT `247_click`. * , `247_contract`.`title`
FROM `247_click`
LEFT JOIN `247_contract` ON `247_click`.`contract_id` = `247_contract`.`contract_id`
ORDER BY `click_id` DESC
# ^ Link Clicks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment