1) People
ID
First
Last
2)Languages
ID
Language
3)JunctionPeopleLanguages
ID
PeopleID
LanguageID
I would like a way to present a form that would allow editing peoples' information and a check box for every language that could be checked or unchecked to indicate what languages they speak.
The junction table contains the language and people id pairs. I do not want to add language columns to the people field as new languages are added regularly to the languages table.
I guess I am looking for a select statement that would produce something like the following.
Code: Select all
ID | First | Last | Spanish | English | French | ...
1 Ben S 0 1 1
2 Jane B 0 0 1
3 Carl F 1 1 1