Click here to Skip to main content
15,886,518 members
Home / Discussions / Database
   

Database

 
AnswerRe: MySql Resource Pin
Peter Leow20-Feb-17 16:08
professionalPeter Leow20-Feb-17 16:08 
QuestionTricky Query that includes a time difference Pin
john_berman20-Feb-17 6:09
john_berman20-Feb-17 6:09 
AnswerRe: Tricky Query that includes a time difference Pin
Richard MacCutchan20-Feb-17 6:22
mveRichard MacCutchan20-Feb-17 6:22 
GeneralRe: Tricky Query that includes a time difference Pin
john_berman20-Feb-17 6:45
john_berman20-Feb-17 6:45 
GeneralRe: Tricky Query that includes a time difference Pin
Richard Deeming20-Feb-17 6:52
mveRichard Deeming20-Feb-17 6:52 
GeneralRe: Tricky Query that includes a time difference Pin
john_berman20-Feb-17 7:04
john_berman20-Feb-17 7:04 
GeneralRe: Tricky Query that includes a time difference Pin
john_berman20-Feb-17 7:06
john_berman20-Feb-17 7:06 
QuestionDatabase Design - Help Appreciated Pin
john_berman19-Feb-17 21:03
john_berman19-Feb-17 21:03 
I want to make sure I get the basic design correct from the beginning so help really appreciated.

Im creating a dbase (MySql) that will store Radio Meteor Events.

Individuals collate data on a monthly basis and a contributor may collect anywhere between 4,000 to 8,000 unique events per month, we currently have
6 contributors out of a possible 30 or so.

So planning ahead if all 30 contributed each month we could have around 250,00 event per month

The key purpose is to correlate event capture, so did anyone else capture the same event as me

Each event per contributor is unique and amongst other things each event records a full date yyyy/mm/dd and time HH:MM:SS


Once all this data is in a database there would be quite general queries like how many events on a particular date across all contributors say in the month of Jan how many events across all contributors match with regard to both date and time

Another common slightly more complex query would be to get all events for a particular date where the time matches with a tolerance of say 10 seconds either way

so if we had

Contributor 1 15:00:10
Contributor 1 15:00:30
Contributor 2 15:00:05
Contributor 2 15:01:10
Contributor 3 15:06:10
Contributor 3 15:00:10

It would return

Contributor 1 15:00:10
Contributor 2 15:00:05
Contributor 3 15:00:10

so i was planning two tables

1 - Contributors
2 - Events

Event ID would be unique and the primary key

the link between the two tables would be the Contributor ID


I’m not sure about date and time

I thought for flexibility I could have
Date
Time
Datetime

The data its self is quite simple but given this could grow I want to store it in the most appropriate way to ensure that queries are efficient

Help appreciated

Regards
John Berman
AnswerRe: Database Design - Help Appreciated Pin
Mycroft Holmes19-Feb-17 21:38
professionalMycroft Holmes19-Feb-17 21:38 
GeneralRe: Database Design - Help Appreciated Pin
john_berman20-Feb-17 6:07
john_berman20-Feb-17 6:07 
QuestionDB Case Sensitivity, unexpected/surprising behaviour Pin
User 1106097918-Feb-17 1:17
User 1106097918-Feb-17 1:17 
AnswerRe: DB Case Sensitivity, unexpected/surprising behaviour Pin
Richard Deeming18-Feb-17 1:35
mveRichard Deeming18-Feb-17 1:35 
PraiseRe: DB Case Sensitivity, unexpected/surprising behaviour Pin
User 1106097918-Feb-17 1:40
User 1106097918-Feb-17 1:40 
GeneralRe: DB Case Sensitivity, unexpected/surprising behaviour Pin
User 1106097918-Feb-17 3:49
User 1106097918-Feb-17 3:49 
GeneralRe: DB Case Sensitivity, unexpected/surprising behaviour Pin
Richard Deeming18-Feb-17 8:30
mveRichard Deeming18-Feb-17 8:30 
GeneralRe: DB Case Sensitivity, unexpected/surprising behaviour Pin
User 1106097918-Feb-17 8:35
User 1106097918-Feb-17 8:35 
QuestionBest Praxis for “user-id/primary” Pin
User 1106097917-Feb-17 9:19
User 1106097917-Feb-17 9:19 
AnswerRe: Best Praxis for “user-id/primary” Pin
Gerry Schmitz17-Feb-17 10:28
mveGerry Schmitz17-Feb-17 10:28 
PraiseRe: Best Praxis for “user-id/primary” Pin
User 1106097917-Feb-17 10:30
User 1106097917-Feb-17 10:30 
GeneralRe: Best Praxis for “user-id/primary” Pin
Gerry Schmitz17-Feb-17 11:00
mveGerry Schmitz17-Feb-17 11:00 
AnswerRe: Best Praxis for “user-id/primary” Pin
Eddy Vluggen17-Feb-17 12:45
professionalEddy Vluggen17-Feb-17 12:45 
PraiseRe: Best Praxis for “user-id/primary” Pin
User 1106097918-Feb-17 0:27
User 1106097918-Feb-17 0:27 
GeneralRe: Best Praxis for “user-id/primary” Pin
Eddy Vluggen19-Feb-17 8:45
professionalEddy Vluggen19-Feb-17 8:45 
QuestionVery big database question. Need answers ? Pin
Yogi S.17-Feb-17 7:27
Yogi S.17-Feb-17 7:27 
AnswerRe: Very big database question. Need answers ? Pin
Eddy Vluggen17-Feb-17 7:52
professionalEddy Vluggen17-Feb-17 7:52 

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.