home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / 8861 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!cs.utexas.edu!asuvax!ncar!csn!tpsrd!tps.COM!thomasd
  3. From: thomasd@tps.COM (Thomas W. Day)
  4. Subject: Foxpro 2.0 Index Searches
  5. Message-ID: <thomasd.62.726343853@tps.COM>
  6. Sender: news@tps.com (News Software)
  7. Organization: TPS
  8. Date: Wed, 6 Jan 1993 18:10:53 GMT
  9. Lines: 27
  10.  
  11. I'm sure these are stupid questions, but the Fox manuals are no help.  
  12. Several years ago (the Foxbase years) I was fairly good at this, I've lost 
  13. it and don't know where to find it.  
  14.  
  15. Three questions:
  16.  
  17. 1) How do you do a multiple field indexed SEEK?  Meaning, I have an index 
  18. that was created using three (3) fields, now I want to seek data on those 
  19. fields.  Everything I try seems to bring back EOF without locating any 
  20. related data.  A single field search (the first field of the index) works 
  21. OK, but that's all I've managed.  Until I get this right, I'm doing all my 
  22. data searches with LOCATE and they are slow.
  23.  
  24. 2) If I create several indexes, how do I keep them all current?  Are they 
  25. all automatically updated if they are opened with SELECTs?  Or do I have to 
  26. REINDEX after a change is made in the database with one index and then a 
  27. search is required on a different index?
  28.  
  29. 3) Can you recommend an after-market book that details data search methods?
  30.  
  31. 4) Is there a reasonable way to perform math functions on 4-digit time 
  32. data?  The data is derived by the TIME() function but is stored 
  33. in a character field as 99:99 (hour:minute) character data.  What I want to 
  34. do is subtract two fields stored this way in each record and obtain the 
  35. average time between each of these fields.  Obviously, 15:01-14.58 should 
  36. equal something other than 00:43.  Is there a convert-text-to-time (CTOT?) 
  37. function?
  38.