home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / 8607 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.3 KB  |  42 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!usc!news.service.uci.edu!network.ucsd.edu!munnari.oz.au!comp.vuw.ac.nz!newshost!srlncnc
  3. From: srlncnc@gopher.dosli.govt.nz (Chris Crook)
  4. Subject: FoxPro problem with outer join
  5. Message-ID: <1992Dec21.012636.28374@gopher.dosli.govt.nz>
  6. Sender: srlncnc@gopher.dosli.govt.nz (Chris Crook)
  7. Organization: Department of Survey and Land Information, New Zealand
  8. Date: Mon, 21 Dec 1992 01:26:36 GMT
  9. Lines: 31
  10.  
  11.  
  12. Can anyone offer any advice on how to solve the following problem in FoxPro
  13. (other than by using Paradox!).
  14.  
  15. I have a one table (table1) with the following fields
  16.  
  17.     unique_key
  18.     field1
  19.     field2
  20.  
  21. and a second table (table2) with the fields
  22.  
  23.     unique_key
  24.     field2
  25.  
  26. The key is common to the two tables, but table2 has only a subset of the
  27. key values that are present in table1.  I would like to do is replace the
  28. field2 values in table1 for which there is a corresponding key in table2,
  29. leaving the rest of table1 untouched.
  30.  
  31. I cannot do an SQL join because I would lose most of table1 (ie the records
  32. for which a key does not exist in table2).  I would prefer to avoid using
  33. a SCAN on table2, because it could be SLOW!
  34.  
  35. Have you any suggestions - is there anything obvious I have missed in the
  36. bulky manuals?
  37.  
  38. Thanks in advance for any suggestions.
  39.  
  40.  
  41. Chris Crook
  42.