-
Notifications
You must be signed in to change notification settings - Fork 0
/
demographics_choices.html
64 lines (50 loc) · 1.54 KB
/
demographics_choices.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<head>
<style>
div {
font-family: monospace;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
tr:nth-child(odd) {
background-color: #FFFFFF;
}
tr:nth-child(even) {
background-color: #EBF2F2;
}
th, td {
text-align: left;
padding: 5px 10px 5px 5px;
}
</style>
</head>
<div>
<h1>demographics_choices</h1>
<h2>Description</h2>
<p>
Stores choices to the questions from the demographics survey and user intent questions.
</p>
<h2> Columns </h2>
<table>
<tr><th>Name</th><th>Description</th></tr>
<tr>
<td>question_id</td><td>Integer id for the questions</td>
</tr>
<tr>
<td>choice_id</td><td>The choice id helps to identify how a learner responded to a demographic question. The choice id itself is not a unique identifier, but the question id/choice id combo is unique and relates to a specific choice description (choice_desc) that provides the text of a learner's answer selection. </td>
</tr>
<tr>
<td>choice_desc</td><td>Indicated by a unique question id/choice id combo, this provides the text of a learner's answer selection to a demographic question.</td>
</tr>
</table>
<h2>SQL create statement</h2>
<pre>
CREATE TABLE demographics_choices (
question_id int4
,choice_id int4
,choice_desc varchar
,PRIMARY KEY (question_id, choice_id)
);
</pre>
</div>