Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
geokoro
Starting Member
3 Posts |
Posted - 2009-06-22 : 14:32:34
|
| Hi, I would like some help please.how can I convert nvarchar(10) to something that i can Sum with. the nvarchar(10) data look like this (01:15)and it stant for 1 hour and 15 minutes.i need to sum that data but I could not. Can you help me ? |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-06-22 : 14:45:14
|
SUM(DATEDIFF(MINUTE, 0, Col1)) E 12°55'05.63"N 56°04'39.26" |
 |
|
|
geokoro
Starting Member
3 Posts |
Posted - 2009-06-22 : 14:54:53
|
| THAT WAS QUICK THANK'S A LOT |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-06-22 : 15:01:51
|
Quick... And working? E 12°55'05.63"N 56°04'39.26" |
 |
|
|
geokoro
Starting Member
3 Posts |
Posted - 2009-06-22 : 15:10:52
|
| yes tested and working. thanksdon you know which function in Crystal does the same as DATEDIFF ? |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-06-22 : 15:53:31
|
There probablt is.What does the Crystal Reports help file say? E 12°55'05.63"N 56°04'39.26" |
 |
|
|
ams006
Yak Posting Veteran
55 Posts |
Posted - 2009-06-25 : 11:07:39
|
| The function in Crystal is also called 'DateDiff' |
 |
|
|
|
|
|