Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Indexing Dates

$
0
0
Hello SQL ServerCentral,I have a quick question. I am trying to index dates to numbers with a large data set.The first colums is index, the next is FactorsS, the next is value and the next is Date and the last is Lag.Would it be difficult to write code that would determine the lag values. The lag value is based on the date value.[b]Index FactorS Value Date Lag[u][/u][/b]1 XYZ 2.3 12/31/2014 12 XYZ 1.4 12/30/2014 23 XYZ 3.3 12/29/2014 34 ABC 1.8 12/31/2014 15 ABC 2.2 12/30/2014 26 CBA 1.7 12/31/2014 17 CBA 1.8 12/30/2014 28 CBA 1.9 12/29/2014 39 CBA 2.1 12/28/2014 4

Viewing all articles
Browse latest Browse all 3145

Trending Articles