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

Database

 
AnswerRe: Very big database question. Need answers ? Pin
Eddy Vluggen17-Feb-17 7:52
professionalEddy Vluggen17-Feb-17 7:52 
QuestionHow to calculate the eligibility year of Promotion if Present Year - last year of Promotion is greater than or Equals to 3 (Three) Pin
Okezie Victor17-Feb-17 0:05
Okezie Victor17-Feb-17 0:05 
AnswerRe: How to calculate the eligibility year of Promotion if Present Year - last year of Promotion is greater than or Equals to 3 (Three) Pin
Mycroft Holmes17-Feb-17 12:57
professionalMycroft Holmes17-Feb-17 12:57 
GeneralRe: How to calculate the eligibility year of Promotion if Present Year - last year of Promotion is greater than or Equals to 3 (Three) Pin
Okezie Victor28-Mar-17 3:46
Okezie Victor28-Mar-17 3:46 
Questionwhat is the best way indexing foreign key from multiple table? Pin
Gilbert Consellado9-Feb-17 23:30
professionalGilbert Consellado9-Feb-17 23:30 
AnswerRe: what is the best way indexing foreign key from multiple table? Pin
Eddy Vluggen10-Feb-17 0:58
professionalEddy Vluggen10-Feb-17 0:58 
GeneralRe: what is the best way indexing foreign key from multiple table? Pin
Gilbert Consellado10-Feb-17 1:54
professionalGilbert Consellado10-Feb-17 1:54 
SuggestionRe: what is the best way indexing foreign key from multiple table? Pin
Richard Deeming10-Feb-17 2:56
mveRichard Deeming10-Feb-17 2:56 
Think of it like a phone book: the data has a composite key of (Surname, Forename).

If you're always going to know the surname of the records you're looking for, then the index works.

But if you ever want to search for a particular forename, without knowing the surname, then the index is no help. You have to resort to reading through the entire book to find the matching records.

If you wanted to do that regularly, you'd create a separate index sorted by forename. That would make it easier to find records with a particular forename. But it would also mean you'd have more work to do when you insert, update, or delete records.

Which option you choose will depend on your data, how you're going to be querying it, and how often you're going to be changing it. For example, if you're only going to be using t1 as a lookup, and never searching for records with a particular t1_id, then there's probably not much point having an index on it.

It basically comes down to a combination of instinct and performance measurement. Smile | :)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: what is the best way indexing foreign key from multiple table? Pin
Gilbert Consellado10-Feb-17 3:25
professionalGilbert Consellado10-Feb-17 3:25 
QuestionNot sure how to handle this sort of speaking FoxPro DBF Pin
jkirkerx9-Feb-17 7:31
professionaljkirkerx9-Feb-17 7:31 
AnswerRe: Not sure how to handle this sort of speaking FoxPro DBF Pin
jkirkerx9-Feb-17 7:40
professionaljkirkerx9-Feb-17 7:40 
GeneralRe: Not sure how to handle this sort of speaking FoxPro DBF Pin
Gerry Schmitz9-Feb-17 8:17
mveGerry Schmitz9-Feb-17 8:17 
GeneralRe: Not sure how to handle this sort of speaking FoxPro DBF Pin
jkirkerx13-Feb-17 6:40
professionaljkirkerx13-Feb-17 6:40 
GeneralRe: Not sure how to handle this sort of speaking FoxPro DBF Pin
Gerry Schmitz13-Feb-17 9:32
mveGerry Schmitz13-Feb-17 9:32 
GeneralRe: Not sure how to handle this sort of speaking FoxPro DBF Pin
jkirkerx13-Feb-17 11:44
professionaljkirkerx13-Feb-17 11:44 
SuggestionRe: Not sure how to handle this sort of speaking FoxPro DBF Pin
Richard Deeming9-Feb-17 9:14
mveRichard Deeming9-Feb-17 9:14 
GeneralRe: Not sure how to handle this sort of speaking FoxPro DBF Pin
jkirkerx13-Feb-17 6:34
professionaljkirkerx13-Feb-17 6:34 
QuestionHow do I model this? Pin
Jörgen Andersson7-Feb-17 12:58
professionalJörgen Andersson7-Feb-17 12:58 
AnswerRe: How do I model this? Pin
Mycroft Holmes7-Feb-17 21:52
professionalMycroft Holmes7-Feb-17 21:52 
GeneralRe: How do I model this? Pin
Jörgen Andersson7-Feb-17 22:03
professionalJörgen Andersson7-Feb-17 22:03 
AnswerRe: How do I model this? Pin
Gerry Schmitz9-Feb-17 8:32
mveGerry Schmitz9-Feb-17 8:32 
AnswerRe: How do I model this? Pin
Eddy Vluggen9-Feb-17 10:28
professionalEddy Vluggen9-Feb-17 10:28 
GeneralRe: How do I model this? Pin
Jörgen Andersson13-Feb-17 2:46
professionalJörgen Andersson13-Feb-17 2:46 
GeneralRe: How do I model this? Pin
Eddy Vluggen13-Feb-17 6:42
professionalEddy Vluggen13-Feb-17 6:42 
QuestionLinq-ToSQL Invalid Cast Pin
Kevin Marois2-Feb-17 6:34
professionalKevin Marois2-Feb-17 6:34 

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.