home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!news.udel.edu!udel!gvls1!jabber!paulr
- From: paulr@bts.com (Paul Raulerson)
- Subject: Re: FoxPro problem with outer join
- Organization: Bux Technical Services -- Doylestown, PA
- Date: Mon, 21 Dec 1992 20:11:08 GMT
- Message-ID: <1992Dec21.201108.29887@bts.com>
- References: <1992Dec21.012636.28374@gopher.dosli.govt.nz>
- Lines: 50
-
- In article <1992Dec21.012636.28374@gopher.dosli.govt.nz> srlncnc@gopher.dosli.govt.nz (Chris Crook) writes:
-
- I am a novice FoxPro programmer, though I can tear up SQL. <grin>
- Indeed, if FoxPro supported a full SQL dialect, a SELECT with
- and UPDATE would work just ducky here. But since it doesn't, have your
- tried just reading the entire second table into an array, then
- processing the first table using the array?
-
- Something like:
-
- select * from table2 into array myarray;
-
- ?
- If that is a dumb idea, don't hesitate to tell me. :)
- -Paul
-
-
- >
- >Can anyone offer any advice on how to solve the following problem in FoxPro
- >(other than by using Paradox!).
- >
- >I have a one table (table1) with the following fields
- >
- > unique_key
- > field1
- > field2
- >
- >and a second table (table2) with the fields
- >
- > unique_key
- > field2
- >
- >The key is common to the two tables, but table2 has only a subset of the
- >key values that are present in table1. I would like to do is replace the
- >field2 values in table1 for which there is a corresponding key in table2,
- >leaving the rest of table1 untouched.
- >
- >I cannot do an SQL join because I would lose most of table1 (ie the records
- >for which a key does not exist in table2). I would prefer to avoid using
- >a SCAN on table2, because it could be SLOW!
- >
- >Have you any suggestions - is there anything obvious I have missed in the
- >bulky manuals?
- >
- >Thanks in advance for any suggestions.
- >
- >
- >Chris Crook
-
-
-