home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / 9294 < prev    next >
Encoding:
Text File  |  1993-01-21  |  850 b   |  30 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!microsoft!wingnut!waynel
  3. From: waynel@microsoft.com (Wayne Lampel)
  4. Subject: Re: Foxpro: Reporting/Querying on most recent date in DBF
  5. Message-ID: <1993Jan21.182645.9161@microsoft.com>
  6. Date: 21 Jan 93 18:26:45 GMT
  7. Organization: Microsoft Corp.
  8. References: <C131HG.4C4@acsu.buffalo.edu> 
  9. Distribution: usa
  10. Lines: 18
  11.  
  12. In article <C131HG.4C4@acsu.buffalo.edu> v125qmam@ubvmsb.cc.buffalo.edu wrote:
  13. > Hi all!
  14. >     How can I get Foxpro to point to the record containing the most
  15. >     recent date within a group?  For example: 
  16. >     The File looks like this:
  17. >             Name    C     20
  18. >             Date    D     8
  19. >     I want to query the most recent Date associated with a given name.
  20. >     The MAX Function requires a list of possibilites...
  21. > Thanks!
  22. > - Ami                    
  23.  
  24. Perhaps: CALCULATE MAX(date) FOR name = "whatever" TO maxdate
  25.  
  26.