Skip to content

Commit f40f1ea

Browse files
committed
Version 1.0
1 parent d603151 commit f40f1ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5877
-0
lines changed

SQL/multiple-choice-answers.sql

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SELECT *
2+
FROM CHAINED_CHOICES
3+
WHERE id IN ('375','376')
4+
AND goto <> 'next'
5+
ORDER BY id
6+
LIMIT 1

SQL/query.sql

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SELECT Q.id as "Quiz ID",
2+
UA.id as "User Answer ID", Q.title, UA.answer
3+
FROM JHVLIRmkchained_questions as Q,
4+
JHVLIRmkchained_user_answers as UA
5+
WHERE Q.id = 80
6+
AND UA.question_id = Q.id
7+
AND UA.id > 797

SQL/quiz-goto-sort.sql

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
SELECT Quiz.title, Question.question, Choice.choice,
2+
Quiz.id as quiz_id,
3+
Question.id as question_id,
4+
Choice.id as choice_id,
5+
Choice.goto
6+
FROM JHVLIRmkchained_quizzes Quiz,
7+
JHVLIRmkchained_questions Question,
8+
JHVLIRmkchained_choices Choice
9+
WHERE Quiz.id = 9
10+
AND Question.quiz_id = Quiz.id
11+
AND Choice.question_id = Question.id
12+
ORDER BY Question.sort_order, Choice.id

SQL/soap-note.sql

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
SELECT tUA.*,
2+
tC.choice as choice,
3+
tC.is_correct as choice_correct,
4+
tC.assessment as assessment,
5+
tC.plan as plan,
6+
tQ.question as question,
7+
tQ.qtype as qtype,
8+
tQ.soap_type as soap_type
9+
FROM JHVLIRmkchained_user_answers tUA
10+
JOIN JHVLIRmkchained_questions tQ ON tQ.id = tUA.question_id
11+
LEFT JOIN JHVLIRmkchained_choices tC ON tC.id = tUA.answer
12+
WHERE tUA.completion_id=463 ORDER BY tUA.ID

0 commit comments

Comments
 (0)