Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15436

[RESOLVED] SQL - translate date to sequence as integer - timeline

$
0
0
Hi
Is there a way to somehow translate/convert/map dates to a number that indicates the chronology of which record was created first?
What I need is to have a column that looks at my date column and translate that to e.g. 0,1,2 chronologically:

Name:  Sequence.jpg
Views: 22
Size:  29.8 KB


Code:

DVID                INID        Date              Sequence
DV0048236        4588        07-01-2020        1
DV0048236        4218        05-01-2020        0
DV0053982        2356        07-05-2019        0
DV0053982        1245        07-12-2020        2
DV0053982        1195        07-09-2019        1


Thanks for any help.
Attached Images
 

Viewing all articles
Browse latest Browse all 15436

Latest Images

Trending Articles



Latest Images

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