Click here to Skip to main content
15,887,135 members
Home / Discussions / Database
   

Database

 
AnswerRe: join query Pin
rushabhp21-Jan-14 18:50
rushabhp21-Jan-14 18:50 
GeneralRe: join query Pin
King Fisher30-Jan-14 2:17
professionalKing Fisher30-Jan-14 2:17 
QuestionAccess 2007 Trying to get Report to break down Call Count within 3 consecutive time ranges. Pin
Member 1053318518-Jan-14 18:28
Member 1053318518-Jan-14 18:28 
AnswerRe: Access 2007 Trying to get Report to break down Call Count within 3 consecutive time ranges. Pin
Mycroft Holmes18-Jan-14 22:32
professionalMycroft Holmes18-Jan-14 22:32 
QuestionProper databse for a seatmap/multiple? Pin
Yhen Caisip18-Jan-14 3:05
Yhen Caisip18-Jan-14 3:05 
AnswerRe: Proper databse for a seatmap/multiple? Pin
Peter Leow18-Jan-14 3:25
professionalPeter Leow18-Jan-14 3:25 
GeneralRe: Proper databse for a seatmap/multiple? Pin
Yhen Caisip18-Jan-14 4:06
Yhen Caisip18-Jan-14 4:06 
SuggestionRe: Proper databse for a seatmap/multiple? Pin
Peter Leow18-Jan-14 4:50
professionalPeter Leow18-Jan-14 4:50 
To be able to design a database correctly, one has to understand the users' requirements and their business rules. Many considerations arise, such as:
1. Can a passenger start and end his journey at any stopovers?
2. How to ensure a seat in a bus is not reserved by more than one passengers for a journey on the same date and time.
Based on the limited info that you have given and my own assumption, I have drafted a preliminary database schema for your reference and adaptation, you will have to work out your final solution yourself:
VB
Table: reservation
reserveID (PRIMARY KEY),
busID,
reserveStatus,
custID (Foreign Key to custID in customer table),
start_stopoverID,
end_stopoverID,
[other fields]

Table: customer
custID (PRIMARY KEY),
custName,
[other fields]

Table: bus
busID (PRIMARY KEY),
busNum,
[other fields]

Table: stopovers
stopoverID (PRIMARY KEY),
stopoverName,
[other fields]

Table: bus_stopovers
stopoverID (PRIMARY KEY),
busID (PRIMARY KEY),
[other fields]

GeneralRe: Proper databse for a seatmap/multiple? Pin
Yhen Caisip18-Jan-14 6:00
Yhen Caisip18-Jan-14 6:00 
AnswerRe: Proper databse for a seatmap/multiple? Pin
Jörgen Andersson18-Jan-14 4:24
professionalJörgen Andersson18-Jan-14 4:24 
Questionoracle database 10g SCN Number change Pin
vinayak sharma16-Jan-14 5:43
vinayak sharma16-Jan-14 5:43 
AnswerRe: oracle database 10g SCN Number change Pin
Shameel21-Jan-14 23:37
professionalShameel21-Jan-14 23:37 
Questionpostgresql issues Pin
aswadmanap14-Jan-14 22:35
aswadmanap14-Jan-14 22:35 
AnswerRe: postgresql issues Pin
Eddy Vluggen15-Jan-14 0:31
professionalEddy Vluggen15-Jan-14 0:31 
GeneralRe: postgresql issues Pin
aswadmanap15-Jan-14 15:10
aswadmanap15-Jan-14 15:10 
QuestionRe: postgresql issues Pin
Eddy Vluggen16-Jan-14 10:34
professionalEddy Vluggen16-Jan-14 10:34 
AnswerRe: postgresql issues Pin
Bernhard Hiller15-Jan-14 21:52
Bernhard Hiller15-Jan-14 21:52 
GeneralRe: postgresql issues Pin
aswadmanap21-Jan-14 17:14
aswadmanap21-Jan-14 17:14 
QuestionCreate multiple tables with a single SQL query Pin
Richard Fernandes, Dubai, UAE14-Jan-14 22:35
Richard Fernandes, Dubai, UAE14-Jan-14 22:35 
AnswerRe: Create multiple tables with a single SQL query Pin
Chris Quinn14-Jan-14 23:56
Chris Quinn14-Jan-14 23:56 
AnswerRe: Create multiple tables with a single SQL query Pin
Eddy Vluggen15-Jan-14 0:28
professionalEddy Vluggen15-Jan-14 0:28 
GeneralRe: Create multiple tables with a single SQL query Pin
Shameel16-Jan-14 3:38
professionalShameel16-Jan-14 3:38 
GeneralRe: Create multiple tables with a single SQL query Pin
Eddy Vluggen16-Jan-14 11:16
professionalEddy Vluggen16-Jan-14 11:16 
SuggestionRe: Create multiple tables with a single SQL query Pin
Richard Deeming15-Jan-14 1:04
mveRichard Deeming15-Jan-14 1:04 
AnswerRe: Create multiple tables with a single SQL query Pin
King Fisher30-Jan-14 2:19
professionalKing Fisher30-Jan-14 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.