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

Split Range time in seconds (by row)

$
0
0

SQL 2008 R2

Hi,

I would like to split a time range in seconds by row:

The range: 2014-06-01 10:10:27.590 - 2014-06-01 10:10:48.267

To be splitted as

2014-06-01 10:10:27.000 2014-06-01 10:10:28.000
2014-06-01 10:10:28.000 2014-06-01 10:10:29.000
2014-06-01 10:10:29.000 2014-06-01 10:10:30.000

.....

2014-06-01 10:10:47.000 2014-06-01 10:10:48.000

.

How can I accomplish this requirement without using a supportative <Tally> table?

Many thanks for your help



Viewing all articles
Browse latest Browse all 23857

Trending Articles