hi,
im having a problem on my project dont know how to normalize the customer information and the flight details
hi,
im having a problem on my project dont know how to normalize the customer information and the flight details
As pointed out, separate data that is intrinsic to an entity from transactional data. Treat “flight” as two concepts: a FlightDefinition (the reusable route/flight number) and a ScheduledFlight (a specific date/time/aircraft). The six-table start from is on the right track, but splitting those layers and adding a small set of link tables will remove most normalization and relationship confusion.
Suggested core tables (keys and purpose only):
Key relationship notes:
Minimal example DDL snippet (illustrative):
CREATE TABLE FlightDefinition (FlightDefID INT PRIMARY KEY, FlightNumber VARCHAR(10), OriginAirport CHAR(3), DestAirport CHAR(3));
CREATE TABLE ScheduledFlight (ScheduledFlightID INT PRIMARY KEY, FlightDefID INT REFERENCES FlightDefinition(FlightDefID), DepartureUTC DATETIME, ArrivalUTC DATETIME, AircraftID INT);
CREATE TABLE ReservationSegment (SegmentID INT PRIMARY KEY, ReservationID INT, ScheduledFlightID INT REFERENCES ScheduledFlight(ScheduledFlightID), SeatNumber VARCHAR(4), UNIQUE (ScheduledFlightID, SeatNumber)); Practical tips: prototype in Access if required, but consider MySQL/PostgreSQL (or SQLite for single-user) for concurrency and FK support as suggested. Populate the schema with sample data and step through a booking flow to validate foreign keys, seat allocation, and pricing logic.
Jump to Post— Ezzaral 2,714Separate them based on what data is completely intrinsic to each. What information about the customer applies to them whether they are on or off of a plane? Similarly, what data about the flight would apply even if there were no passengers on it?
Jump to Post— TrustyTony 888What Python are you using or are you another of those lost lambs?
Jump to Post— richieking 44easy tonyjv easy tonyjv .
Jump to Post— TrustyTony 888Maybe we could persuade him to change from Access to sqlite or MySQL? ;)
Separate them based on what data is completely intrinsic to each. What information about the customer applies to them whether they are on or off of a plane? Similarly, what data about the flight would apply even if there were no passengers on it?
thnk you sir...
sorry sir ... i have tried connecting the attributes but i find it very hard..
here what I've started so far...
I have 6 tables for my airline reservation system..(But I dont know if these are enough)
1. Airports
2. Aircrafts details
3. Customer information
4. Booking Details
5. Reservation
6. Flight Details
actually its a total mess...hehehe
if u can give me diagram or a much better relationship... it would be a great help...thanks in advance...sorry again if i marked this post too soon...
hi sir,
please help to complete my system im having a problem in connecting my table attributes..
i am a student and this is my project..
this is the link of my access database about the system..
if you see some area of opportunity to enhance my design i would happy to apply it...
thanks in advance....
What Python are you using or are you another of those lost lambs?
easy tonyjv easy tonyjv .
Maybe we could persuade him to change from Access to sqlite or MySQL? ;)
sorry sir... i was looking for database but it led me into python...hehehe.. like i said im new...next time ill put it on right category...
sorry sir... i was looking for database but it led me into python...hehehe.. like i said im new...next time ill put it on right category...
That is as lame answer as it ever gets, since you already had existing post back 4 days in Database Design section. You just didn't cared where you drop you homework as long you get answer to it.
Thread moved from Python to DB design
Threads merged
this is where I got the answer... and I don't know nothing about python..
http://www.daniweb.com/forums/thread272655.html
please help me about me design...thanks..
this is where i got the answer...
http://www.daniweb.com/forums/thread272655.html
i know its my fault... but i only want to get some help...
I thought I would get some help.. but what did I get.... :(
You never showed any progress in work and was just waiting for others to do your work. That is not how it is working on this forum. So no point moaning about it week later
Right on buddy. Right on!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.