Set near on
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Rick Quilhot
Sent: Friday, October 13, 2006 4:45 PM
To: ProFox Email List
Subject: RE: quick SQL question

Do you want to return just 1 record?

Rick Quilhot
Gallant Transport, Inc
877-Gallant
mailto:[EMAIL PROTECTED]
<*))))))><{

 -----Original Message-----
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]  On
Behalf
Of kam
Sent:   Friday, October 13, 2006 4:45 PM
To:     ProFox Email List
Subject:        quick SQL question

I have records with a date field: dDateServ  D (I am displaying a string but
the date field is a type 'date')

1. 02/15/2006
2. 03/15/2006
3. 04/15/2006
4. 05/15/2006
5. 06/15/2006
6. 07/15/2006
7. 08/15/2006
8. 09/15/2006

I want a LOCATE statement something like this:

LOCATE FOR dDateServ  <= date(2006,06,18)

I want record #5 - the max date that satisfies the for clause.





[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to