G
Guy Cohen
Hi all
Lets say I have columns: c1 d1 c2 d2 c3 d3
Cx are integers
Dx are dates
I want to select one from the C columns where their D column is the latest
e.g.
c1 d1 c2 d2 c3 d3
1, 01/jan/2008 ,5, 02/jan/2008 ,10, 10/jan/2008
4, 01/jan/2008 ,NULL,NULL,NULL,NULL
Select from table t should return:
1
4
Please advise.
TIA
Guy Cohen
Lets say I have columns: c1 d1 c2 d2 c3 d3
Cx are integers
Dx are dates
I want to select one from the C columns where their D column is the latest
e.g.
c1 d1 c2 d2 c3 d3
1, 01/jan/2008 ,5, 02/jan/2008 ,10, 10/jan/2008
4, 01/jan/2008 ,NULL,NULL,NULL,NULL
Select from table t should return:
1
4
Please advise.
TIA
Guy Cohen