I am sorry I was not very clear.
There are actually only 4 weeks and in each week, 5 days are divided as d1, d2, d3, d4 and d5. So, for Week 1, it is like w1d1, w1d2,w1d3.. For Week2, w2d1,w2d2 and so on.. (Please see attached images)
Table 1 has list of persons with unique credentials in 1st column followed by each days details (Trainerw1d1, StartDatew1d1, EndDatew1d1) in subsequent columns.
Table 2 has only the details for 'List of trainings' for each day (w1d1,w1d2). User would need to select the Week tab (1-4)> then Day (1-5) in Gallery > and then fill in the details for that particular day in a Form (Trainerw1d1, StartDatew1d1, EndDatew1d1). Finally this data will be saved in Table 1 (which is the main table).
I am trying to create a relation between tables using w1d1, w2d2, w3d3... but I am unable to do it.