I am planning to make an online bus ticket reservation systems . In this, the ticket agent as well as the online user can book the tickets available . But I am stuck while I am building my flow chart . Buses with same numbers can go to and fro journey,ie a bus with number AS 1234 can go to X and Y in both direction . So how I will be able to search the bus from X and Y only,because that bus will be entered for both direction in database . Thanks
Share
How about adding an extra attribute like “running”. Set it to accept NULL also. If its a bus with bidirectional traffic., When the bus with bus number-AS4532 is running from X->Y, mark attribute “running=’to'” in that record. If its vice-versa set it as “running=”fro”‘. if its unidirectional bus, mark attribute as “N/A”.
So you can do something like,