I am trying to find the most efficient database. My bus routes have only about 10 stops. The bus starts from the first place, until it reaches the 10th stop, and then returns. This cycle occurs 3 times a day.
I really got stuck on how I can efficiently generate time for buses and where I need to store stops. If I put all the stops in one field and the time in another, the database will not be very dynamic.
If I save all the stops one after another in a column, and then the time in another column, there will be many repetitions occurring further, since one stop has several times.
Maybe I missed something, I just started to learn SQL, and this is the task that we set.
Thanks in advance.
source share