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

Database

 
GeneralRe: sum of datediff to many dates Pin
ahmad_yossef11-Mar-14 23:05
ahmad_yossef11-Mar-14 23:05 
GeneralRe: sum of datediff to many dates Pin
Tim Carmichael12-Mar-14 10:57
Tim Carmichael12-Mar-14 10:57 
GeneralRe: sum of datediff to many dates Pin
ahmad_yossef12-Mar-14 23:19
ahmad_yossef12-Mar-14 23:19 
GeneralRe: sum of datediff to many dates Pin
Richard Deeming13-Mar-14 1:10
mveRichard Deeming13-Mar-14 1:10 
AnswerRe: sum of datediff to many dates Pin
Kornfeld Eliyahu Peter11-Mar-14 23:48
professionalKornfeld Eliyahu Peter11-Mar-14 23:48 
GeneralRe: sum of datediff to many dates Pin
ahmad_yossef12-Mar-14 2:23
ahmad_yossef12-Mar-14 2:23 
GeneralRe: sum of datediff to many dates Pin
Richard MacCutchan12-Mar-14 3:53
mveRichard MacCutchan12-Mar-14 3:53 
AnswerRe: sum of datediff to many dates Pin
jschell14-Mar-14 12:15
jschell14-Mar-14 12:15 
I will just say that this sort of exercise seldom ends well without business requirements.

I am not going to analyze all possible interpretations but I will provide and example from your own data.

2013-10-17 2015-05-17

A business person asks you for how many years in that. All of the following are possible answers.
- One. 2013-10 to 2014-10 is one year, but 2014-10 to 2015-05 isn't.
- Zero. Because 2013-10 to 2014-10 is one year but it isn't 2014-10 yet
- Three. 2013, 2014, 2015 = 3.
- Two. 2013-10 to 2014-10 is one year, but 2014-10 to 2015-05 is partial, so round up to get 2.
- Five. The dates are supposed to be based on the contract period not the annual service dates (which the above dates are.)
- 17. Because the person that actually wants this wants a count of months covered.
QuestionDSN Pin
Lek Plepi11-Mar-14 1:27
Lek Plepi11-Mar-14 1:27 
AnswerRe: DSN Pin
cdpsource11-Mar-14 2:14
cdpsource11-Mar-14 2:14 
AnswerRe: DSN Pin
Mycroft Holmes11-Mar-14 2:25
professionalMycroft Holmes11-Mar-14 2:25 
QuestionHo to avoid Not In & In clause in my query Pin
member002611-Mar-14 0:43
member002611-Mar-14 0:43 
AnswerRe: Ho to avoid Not In & In clause in my query Pin
Bernhard Hiller11-Mar-14 1:04
Bernhard Hiller11-Mar-14 1:04 
GeneralRe: Ho to avoid Not In & In clause in my query Pin
member002611-Mar-14 18:08
member002611-Mar-14 18:08 
AnswerRe: Ho to avoid Not In & In clause in my query Pin
thatraja11-Mar-14 2:07
professionalthatraja11-Mar-14 2:07 
AnswerRe: Ho to avoid Not In & In clause in my query Pin
GuyThiebaut11-Mar-14 3:54
professionalGuyThiebaut11-Mar-14 3:54 
QuestionAdding Sales Totals from multiple tables Pin
jkirkerx9-Mar-14 10:54
professionaljkirkerx9-Mar-14 10:54 
AnswerRe: Adding Sales Totals from multiple tables Pin
Mycroft Holmes9-Mar-14 14:16
professionalMycroft Holmes9-Mar-14 14:16 
GeneralRe: Adding Sales Totals from multiple tables Pin
jkirkerx9-Mar-14 17:44
professionaljkirkerx9-Mar-14 17:44 
AnswerRe: Adding Sales Totals from multiple tables Pin
Jörgen Andersson9-Mar-14 22:01
professionalJörgen Andersson9-Mar-14 22:01 
GeneralRe: Adding Sales Totals from multiple tables Pin
jkirkerx10-Mar-14 6:26
professionaljkirkerx10-Mar-14 6:26 
GeneralRe: Adding Sales Totals from multiple tables Pin
Jörgen Andersson10-Mar-14 8:35
professionalJörgen Andersson10-Mar-14 8:35 
QuestionHow to prevent or allow a insert trigger ? Pin
ngoloi9-Mar-14 6:15
ngoloi9-Mar-14 6:15 
AnswerRe: How to prevent or allow a insert trigger ? Pin
Mycroft Holmes9-Mar-14 13:09
professionalMycroft Holmes9-Mar-14 13:09 
GeneralRe: How to prevent or allow a insert trigger ? Pin
ngoloi9-Mar-14 18:02
ngoloi9-Mar-14 18:02 

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.