Hello everybody:
I have a survey table from thousands of students. We asked them what they like or prefer to do. They wrote their answer in sentences. I am interested to check/find their answers by few keywords. And also I want the keywords as new fields.
Basically, in design view, I want to set a query to get the job done in Access. But I failed, I need your thoughts please!
For example below is my table:
| Name |
Feature |
| Ana |
I like travel, fun, walk, sleep |
| Mis |
Probably I prefer sleep, soccer,<br>hunting |
| Steve |
|
| Adel |
I prefer sleep, travel, hunt |
| Derek |
I have no preference to do |
| Alex |
Sleeping, Walking is my preference |
* Notice: Adel Mentioned hunt but Mis mentioned
hunting
* Steve did not give info
* Derek has no preference
Moving forward: I randomly choose keywords to check if the keywords (like sleeping, hunting, etc) exist in their preference list. I also want my keywords as field name and mark/flag if they got exact or closest match or no match or no info at all.
Sample output 1:
| Name |
Football |
Sleeping |
Hunting |
walking |
Soccer |
Nothing |
Unfilled |
| Ana |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
| Mis |
0 |
1 |
1 |
0 |
1 |
0 |
0 |
| Steve |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
| Adel |
0 |
1 |
1 |
0 |
0 |
0 |
0 |
| Derek |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
| Alex |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
Sample output 2:
| Name |
Football |
Sleeping |
Hunting |
walking |
Soccer |
Nothing |
Unfilled |
| Ana |
0 |
sleep |
0 |
walk |
0 |
0 |
0 |
| Mis |
0 |
sleep |
hunting |
0 |
soccer |
0 |
0 |
| Steve |
0 |
0 |
0 |
0 |
0 |
0 |
unfilled |
| Adel |
0 |
1 |
hunt |
0 |
0 |
0 |
0 |
| Derek |
0 |
0 |
0 |
0 |
0 |
none |
0 |
| Alex |
0 |
Sleeping |
0 |
Walking |
0 |
0 |
0 |