Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSIS - Getting latest record of rows

I'm trying to get the top record of the entities from the output of the script component, but I do not see any suitable component to achieve this.

For example:
Student ID          Date                Value
1                   2014-01-01          2
1                   2014-02-02          34
2                   2014-01-01          5
2                   2013-01-01          6
2                   2012-01-01          9

And I will get these:
Student ID          Date                Value
1                   2014-02-02          34
2                   2014-01-01          5

Something like the window functions would do this in SSMS. And this may need to be done within the data-flow. Any suggestion?

enter image description here

like image 704
user3268139 Avatar asked Nov 25 '25 20:11

user3268139


1 Answers

It can be done in ssis by joining the aggregation back to the source, it'll take a few steps but should work:

enter image description here

like image 117
Jayvee Avatar answered Nov 28 '25 15:11

Jayvee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!