Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get last row before any date

Status
Not open for further replies.

inhisglory

Programmer
Jul 8, 2001
10
ID
Hello all...
I want to get the last transaction on a date before.
Example : want to get the last trans (row) before Juli,1st 2001

Thank you
Yahya
 

Use the following query as an example.

Select Top 1 *
From TransTbl
Where TransDate<'jul 1 2001'
Order By TransDate Desc Terry Broadbent
Please review faq183-874.

&quot;The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge.&quot; - Daniel J Boorstin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top