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 query addition

Former Member
0 Likes
400

Hello Group,

I want to fetch last record in the database table.

select profileid eff_date from dbtable.

as eff_date has the latest date, that has to be fetched.

Please could you advice on this.

Many Thanks,

Jagan.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
369

Hello,

Can you not use the aggregate function MAX with the SELECT stmt ?

E.g.,

select profileid MAX( eff_date ) from dbtable.

BR,

Suhas

2 REPLIES 2
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
370

Hello,

Can you not use the aggregate function MAX with the SELECT stmt ?

E.g.,

select profileid MAX( eff_date ) from dbtable.

BR,

Suhas

Read only

Former Member
0 Likes
369

Thanks for your response.

I already used this, I got a workaround finally.

Many Thanks.

Edited by: jagan.sdn on Mar 23, 2010 7:40 PM