Hi everyone,
I am a beginner user of LibreOffice Base. I can’t figure out how to solve the following problem neatly. I have a series of questions but also some potential leads on which I would like to know your opinion.
Imagine this situation: you organise events and thanks to your database you can keep track of the participants, the events, and who attended what.
- To begin, I create a table for all the participants
T_participants
. - I create a separate table for each event, ex:
T_event1
, etc.
2.1. Am I wrong to create a separate table for each event? Would it be better to create yet another table, some sort of intermediary table that would link participants and events? - Inside
T_event1
, I create anINTEGER
primary key and anID_participant
column.
3.1. I linkID_participant
toT_participants.ID
.
How can I create a form that enables me to declare that a participant attended multiple events? Would check boxes, linked to each separate event, do the trick?
Is it possible to create a form that neatly displays a participant and all the events they attended, even though the information is split across multiple tables?
For the moment, I have a very rudimentary answer that dates back from my spreadsheet days: in T_participants
, there is an Events
column, in which I manually write the names of the events separated by comas (as if I were using tags). This solution is “suboptimal” to say the least. Since this database was originally generated from a spreadsheet, the spelling of the names is somewhat inconsistent, that is why I need to create linked tables to facilitate future research.
Thanks a lot for your time!