Connecting Tech Pros Worldwide Forums | Help | Site Map

how to get the previous record value in the current record plz help me...

Newbie
 
Join Date: Aug 2007
Posts: 1
#1: Aug 27 '07
In my sql how to get the previous record value...
in table i m having the field called Date i want find the difference b/w 2nd record date value with first record date... plz any one help me to know this i m waiting for ur reply....

Thanx in Advance
with regards
kotresh

Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#2: Aug 27 '07

re: how to get the previous record value in the current record plz help me...


Quote:

Originally Posted by kotresh

In my sql how to get the previous record value...
in table i m having the field called Date i want find the difference b/w 2nd record date value with first record date... plz any one help me to know this i m waiting for ur reply....

Thanx in Advance
with regards
kotresh

Expand|Select|Wrap|Line Numbers
  1. select theDate from tableName limit 1
  2.  
will give the date for the first record. To navigate between records you can use limit start, stop where start and stop are the offsets.
Reply