| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> re:Data modeling issues for a travel planning system
In STATION_LINE table, although three fields make one unique record, I
still prefer using an unique ID as the primary key, and control the
logic in the program.
The definitions are not very reasonable IMHO, direction_id should be placed in the line and doesn't have to be repeated in every record of STATION_LINE. It's better not to use nextstat_id if there are not many stations in one line, it would be very inconvenient to navigate.
How about this:
LINE:
- (PK) ID (integer)
STATION_LINE:
- (PK) ID (integer)
For example: to list all stations of a line in order: select id from STATION_LINE order by order_number. Received on Sat Nov 05 2005 - 02:10:29 CST
![]() |
![]() |