Skip to content

Commit

Permalink
Add sql script to filter answers for csv export
Browse files Browse the repository at this point in the history
  • Loading branch information
manuGil committed Jun 26, 2024
1 parent b8e6565 commit 83958db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/answers_csv.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SELECT ans.*, res.*, mapv.*, sur.*, que.*
FROM public.apiapp_answer AS ans,
public.apiapp_response as res,
public.apiapp_mapview as mapv,
public.apiapp_survey as sur,
public.apiapp_question as que
WHERE ans.response_id = res.response_id
AND res.survey_id = sur.id
AND ans.mapview_id = mapv.id
AND que.survey_id = sur.id
ORDER BY ans.id ASC

0 comments on commit 83958db

Please sign in to comment.