Click here to Skip to main content
15,888,454 members
Home / Discussions / Database
   

Database

 
AnswerRe: Default Button is not working using different (skinid) Pin
Eddy Vluggen2-Jul-13 0:31
professionalEddy Vluggen2-Jul-13 0:31 
GeneralRe: Default Button is not working using different (skinid) Pin
Mycroft Holmes2-Jul-13 1:23
professionalMycroft Holmes2-Jul-13 1:23 
GeneralRe: Default Button is not working using different (skinid) Pin
Shameel8-Jul-13 19:29
professionalShameel8-Jul-13 19:29 
GeneralRe: Default Button is not working using different (skinid) Pin
Mycroft Holmes8-Jul-13 21:26
professionalMycroft Holmes8-Jul-13 21:26 
QuestionDate difference with total years, months and days Pin
maxRazar1-Jul-13 18:37
maxRazar1-Jul-13 18:37 
AnswerRe: Date difference with total years, months and days Pin
Eddy Vluggen2-Jul-13 0:32
professionalEddy Vluggen2-Jul-13 0:32 
AnswerRe: Date difference with total years, months and days Pin
Mycroft Holmes2-Jul-13 1:21
professionalMycroft Holmes2-Jul-13 1:21 
GeneralRe: Date difference with total years, months and days Pin
Richard Deeming2-Jul-13 1:35
mveRichard Deeming2-Jul-13 1:35 
Mycroft Holmes wrote:
do the datediff 3 times getting the Y/M/D separately and concatenate them as you want.

That won't work. Consider:
SQL
declare @start date = '20121231';
declare @end date = '20130101';
select
   cast(datediff(year, @start, @end) as varchar(5)) + ' year, '
   + cast(datediff(month, @start, @end) as varchar(5)) + ' month, '
   + cast(datediff(day, @start, @end) as varchar(5)) + ' day'
;

The output will be 1 year, 1 month, 1 day, which is obviously wrong.



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


GeneralRe: Date difference with total years, months and days Pin
Tim Carmichael2-Jul-13 1:57
Tim Carmichael2-Jul-13 1:57 
GeneralRe: Date difference with total years, months and days Pin
Mycroft Holmes2-Jul-13 2:20
professionalMycroft Holmes2-Jul-13 2:20 
AnswerRe: Date difference with total years, months and days Pin
Tim Carmichael2-Jul-13 1:59
Tim Carmichael2-Jul-13 1:59 
QuestionKeep Client QL DB Updated Pin
Kevin Marois1-Jul-13 7:02
professionalKevin Marois1-Jul-13 7:02 
AnswerRe: Keep Client QL DB Updated Pin
Mycroft Holmes1-Jul-13 12:43
professionalMycroft Holmes1-Jul-13 12:43 
QuestionAutomatically open keys upon connection Pin
PIEBALDconsult28-Jun-13 7:58
mvePIEBALDconsult28-Jun-13 7:58 
QuestionDerived Fields Pin
eddieangel28-Jun-13 6:49
eddieangel28-Jun-13 6:49 
AnswerRe: Derived Fields Pin
Tim Carmichael28-Jun-13 7:12
Tim Carmichael28-Jun-13 7:12 
AnswerRe: Derived Fields Pin
PIEBALDconsult28-Jun-13 7:25
mvePIEBALDconsult28-Jun-13 7:25 
AnswerRe: Derived Fields Pin
Mycroft Holmes28-Jun-13 12:53
professionalMycroft Holmes28-Jun-13 12:53 
GeneralCrazy many data from database to array then a lot of calculation Pin
crunchor26-Jun-13 7:40
crunchor26-Jun-13 7:40 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
wizardzz26-Jun-13 8:20
wizardzz26-Jun-13 8:20 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
crunchor26-Jun-13 8:23
crunchor26-Jun-13 8:23 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
wizardzz26-Jun-13 8:26
wizardzz26-Jun-13 8:26 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
crunchor26-Jun-13 8:29
crunchor26-Jun-13 8:29 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
Ron Beyer26-Jun-13 8:25
professionalRon Beyer26-Jun-13 8:25 
GeneralRe: Crazy many data from database to array then a lot of calculation Pin
Marco Bertschi26-Jun-13 8:39
protectorMarco Bertschi26-Jun-13 8:39 

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.