Database Design for a Train Booking System

  Рет қаралды 8,808

Database Star

Database Star

Күн бұрын

Пікірлер: 41
@DatabaseStar
@DatabaseStar 3 күн бұрын
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
@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
@DatabaseStar Жыл бұрын
That's good to hear you've found this video useful and have used it to improve your own design!
@rbhambriiit
@rbhambriiit 10 ай бұрын
Good stuff. I am learning system design from your playlist. Thanks!
@DatabaseStar
@DatabaseStar 10 ай бұрын
Great to hear!
@marinomartin9920
@marinomartin9920 8 ай бұрын
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.
@DatabaseStar
@DatabaseStar 8 ай бұрын
Thanks! That's a great point, something to definitely consider and to probably update the diagram to allow.
@luke27456
@luke27456 8 ай бұрын
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?
@DatabaseStar
@DatabaseStar 8 ай бұрын
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.
@anishashaji4133
@anishashaji4133 10 ай бұрын
hi Ben , the diagram is amazing. So simple and clear. Could you please add performance tuning for SQLs in future?
@DatabaseStar
@DatabaseStar 10 ай бұрын
Thanks! Sure, I do have some videos on my channel already about SQL performance and I’ll create more in the future.
@attarannaufal4308
@attarannaufal4308 6 ай бұрын
thanks, im developing train booking ticket right now. Student exercise
@DatabaseStar
@DatabaseStar 6 ай бұрын
Glad it has helped!
@labiribiri1901
@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
@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
@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
@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
@trentcox9239 Жыл бұрын
@@DatabaseStar oh dang that was me. completely forgot about that. alright ill stop nagging for an audit table video now
@DatabaseStar
@DatabaseStar Жыл бұрын
No problem! Thanks for giving me more info about what you need anyway.
@MehediHassan-pn5uc
@MehediHassan-pn5uc Жыл бұрын
Request to make a Db design for udemy like LMS platform! Thank you for your awesome contents 🖤
@shobhitmittal77
@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
@MehediHassan-pn5uc Жыл бұрын
@@shobhitmittal77 Yes
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks for the request! Sure I can make a video about designing a database for a LMS.
@MehediHassan-pn5uc
@MehediHassan-pn5uc Жыл бұрын
@@DatabaseStar thanks for taking my request into your consideration... looking forward to it 🖤
@iammahabub
@iammahabub Жыл бұрын
Thank you so much for this video!
@DatabaseStar
@DatabaseStar Жыл бұрын
You're welcome!
@nitheshms6515
@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
@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.
@claudiu1901
@claudiu1901 6 ай бұрын
Great video! I was just wondering to what extent is the database normalized? Is it FN3?
@DatabaseStar
@DatabaseStar 6 ай бұрын
Thanks! Yes it should be in third normal form.
@Htm-lh7ij
@Htm-lh7ij 11 күн бұрын
tnx man, is there any way to download this pdf?
@DatabaseStar
@DatabaseStar 7 күн бұрын
Yes, you can get the PDF here: www.databasestar.com/dbdesign/
@YacineBenjedidia-wm6pw
@YacineBenjedidia-wm6pw Жыл бұрын
Very interesting exercise thanks
@DatabaseStar
@DatabaseStar Жыл бұрын
Glad you enjoyed it
@SabaMahamed-wx1zm
@SabaMahamed-wx1zm 6 ай бұрын
Can please help or make project train database access
@DatabaseStar
@DatabaseStar 6 ай бұрын
What do you mean? This video is about a train database.
@SabaMahamed-wx1zm
@SabaMahamed-wx1zm 6 ай бұрын
@DatabaseStar full project database access please 🙏
@DatabaseStar
@DatabaseStar 6 ай бұрын
I still don’t understand what you mean. Have you watched this video you’re commenting on?
@SabaMahamed-wx1zm
@SabaMahamed-wx1zm 6 ай бұрын
Yes
@gauravsrivastava17
@gauravsrivastava17 5 ай бұрын
Great
@DatabaseStar
@DatabaseStar 5 ай бұрын
Thanks!
Database Design - similar records, what to do?
7:53
Database Star
Рет қаралды 3,3 М.
How to Design a Database
10:57
Database Star
Рет қаралды 70 М.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
eCommerce Database Design: Diagram & Explanation
16:06
Database Star
Рет қаралды 149 М.
Database Design for a Hotel Management System
12:14
Database Star
Рет қаралды 16 М.
Database Design for an Online Course Website
10:38
Database Star
Рет қаралды 6 М.
Database Design for School Students for an Entire School
18:34
Database Star
Рет қаралды 28 М.
Database Design for Chat Application
10:01
Database Star
Рет қаралды 65 М.
eCommerce Product Database Design: Step-By-Step
30:42
Database Star
Рет қаралды 24 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 86 М.