Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

select statement

Former Member
0 Likes
390

hi all,

i need to select the oldest entry from a table based on particular field .

can there be a select where i select just 1 entry and that should be the oldest one?

OR i first select all data

then sort it decending

then??

what can be done

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
372

you can do the following

selec max(<date column>) from <table>.

2 REPLIES 2
Read only

Former Member
0 Likes
373

you can do the following

selec max(<date column>) from <table>.

Read only

Former Member
0 Likes
372

Read all the entries of the table into an internal table.

Sort the internal table for that field or date

Read the internal table with key....which would pick the first record...(oldest one in your case)

hope it helps

thanks