Bonus PDF: This ERD, descriptions of each table and column with sample data, and SQL scripts to create all of the tables on your own database: www.databasestar.com/dbdesign/?
@miinishbat Жыл бұрын
The diagram looks amazing! I am developing a train travel webapp, I did it in a different way but your diagram helps me improve my system, I have already taken into consideration that the user can buy several tickets at the same time
@DatabaseStar Жыл бұрын
That's good to hear you've found this video useful and have used it to improve your own design!
@rbhambriiit10 ай бұрын
Good stuff. I am learning system design from your playlist. Thanks!
@DatabaseStar10 ай бұрын
Great to hear!
@marinomartin99208 ай бұрын
Great diagram and walkthrough, Ben! One thing to note: You'll want to be sure to capture "Origin" and "Destination" or a directional equivalent on the Journey table, as the station stops along the NY > BOS journey may not be the exact same sequence as the BOS > NY journey in the reverse order.
@DatabaseStar8 ай бұрын
Thanks! That's a great point, something to definitely consider and to probably update the diagram to allow.
@luke274568 ай бұрын
Great stuff. Thanks for the awesome content! I'd be interested to see how you solve for the seating capacity being adjusted by an overlapping route. For example a route from station A -> B -> C. How would you account for a booking of the route from station B -> C? There should be one less seat available from station A -> B -> C, right?
@DatabaseStar8 ай бұрын
You're welcome! That's a good question. I'm not sure. It may be best to break the routes into station by stations, and when a booking is made for a start and end station, then it's stored as occupied for those stations but not for other stations.
@anishashaji413310 ай бұрын
hi Ben , the diagram is amazing. So simple and clear. Could you please add performance tuning for SQLs in future?
@DatabaseStar10 ай бұрын
Thanks! Sure, I do have some videos on my channel already about SQL performance and I’ll create more in the future.
@attarannaufal43086 ай бұрын
thanks, im developing train booking ticket right now. Student exercise
@DatabaseStar6 ай бұрын
Glad it has helped!
@labiribiri1901 Жыл бұрын
Amazing video but i believe you made a mistake. DepartureTime is not the same as Arrival time so you're suffering integrity issues. Also, there is alot of normal form violations which makes this table insufficient. If im wrong or overlooking something please let me know, thanks.
@DatabaseStar Жыл бұрын
Thanks for the feedback! Yes you’re right, this design assumes arrival and departure are at the same time, but in reality they aren’t, so we could add another column. What are the other normal form violations that you see?
@trentcox9239 Жыл бұрын
these are fantastic. any chance of providing a design with auditable tables? im a chronic sufferer of 'YAGNI' and lose sleep and time mostly over features noone asked for but that little voice in my head says is a good idea. case in point, when i see this design i think it could be further enhanced by somehow allowing for the ability to have an audit trail of sorts to backtrack through booking status changes, payment/refund changes, etc. trying to find good and scaleable solutions to auditing that doesn't include an expensive third party are few and far between sadly....definately lookin forward to that on this channel. keep up the solid work these are awesome
@DatabaseStar Жыл бұрын
Thanks! Yes I do have a video on audit tables coming up soon. I had another comment recently about it (perhaps it was you as well) so I'll create it soon. I think this design could be enhanced with audit tables as you have said - it's a good point.
@trentcox9239 Жыл бұрын
@@DatabaseStar oh dang that was me. completely forgot about that. alright ill stop nagging for an audit table video now
@DatabaseStar Жыл бұрын
No problem! Thanks for giving me more info about what you need anyway.
@MehediHassan-pn5uc Жыл бұрын
Request to make a Db design for udemy like LMS platform! Thank you for your awesome contents 🖤
@shobhitmittal77 Жыл бұрын
yes please, that would be great.. There, we can include features like Quiz - MCQs, % completion of the course, locking the new videos, etc.
@MehediHassan-pn5uc Жыл бұрын
@@shobhitmittal77 Yes
@DatabaseStar Жыл бұрын
Thanks for the request! Sure I can make a video about designing a database for a LMS.
@MehediHassan-pn5uc Жыл бұрын
@@DatabaseStar thanks for taking my request into your consideration... looking forward to it 🖤
@iammahabub Жыл бұрын
Thank you so much for this video!
@DatabaseStar Жыл бұрын
You're welcome!
@nitheshms6515 Жыл бұрын
This video is really amazing, Would like to know more on how we can enhance this if seat_id is selected by passanger and not assigned internally by management app
@DatabaseStar Жыл бұрын
Thanks! Yeah you may have to add seat numbers or seat id to a carriage and have the application run a query to show available seat numbers.
@claudiu19016 ай бұрын
Great video! I was just wondering to what extent is the database normalized? Is it FN3?
@DatabaseStar6 ай бұрын
Thanks! Yes it should be in third normal form.
@Htm-lh7ij11 күн бұрын
tnx man, is there any way to download this pdf?
@DatabaseStar7 күн бұрын
Yes, you can get the PDF here: www.databasestar.com/dbdesign/
@YacineBenjedidia-wm6pw Жыл бұрын
Very interesting exercise thanks
@DatabaseStar Жыл бұрын
Glad you enjoyed it
@SabaMahamed-wx1zm6 ай бұрын
Can please help or make project train database access
@DatabaseStar6 ай бұрын
What do you mean? This video is about a train database.
@SabaMahamed-wx1zm6 ай бұрын
@DatabaseStar full project database access please 🙏
@DatabaseStar6 ай бұрын
I still don’t understand what you mean. Have you watched this video you’re commenting on?