Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Grouping a data small datetime

$
0
0

Hi guys, I got data that come from Oracle, finally I got a good structure , everything is good but this issue:

203 2013-04-18 14:45:19.0000000  100

203 2013-04-18 14:45:25.0000000    85

just as sample, I shoud group th id 203 as

203 2013-04-18 185

I tried with convert, cast, day, year and everything but always the result is splitted in two rows. I don have idea at the moment how I can group the data from thet format to another format ( but more important I don't want the 203 splitted and in the same time I need the data...)

Any advice? Thanks



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>