home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!decwrl!waikato.ac.nz!comp.vuw.ac.nz!ferrari.datamark.co.nz!david
- Newsgroups: comp.databases
- Subject: Bug with FOXPRO 2 SQL ???
- Message-ID: <1992Nov23.013506.21624@datamark.co.nz>
- From: david@datamark.co.nz (David Rowland)
- Date: Mon, 23 Nov 1992 01:35:06 GMT
- Organization: Datamark International Ltd.
- Lines: 51
-
- Is it me or is there a bug with the FOXPRO 2 SQL language.
-
- The bug is as follows:
-
- If I had three tables
-
- 1: KEYA KEYB 2: KEYA 3: KEYB
-
- AAAA 1111 AAAA 1111
- BBBB 2222 BBBB 2222
- CCCC 3333 CCCC 3333
-
- and I access them through the following statement
-
- select *
- from table1, table2, table3
- where table1.keya = table2.keya
- and table1.keyb = table3.keyb
-
- I get the following
-
- keya keyb table2.keya table3.keyb
- AAAA 1111 AAAA 1111
- AAAA 1111 AAAA 2222
- AAAA 1111 AAAA 3333
- AAAA 1111 BBBB 1111
- AAAA 1111 BBBB 2222
- AAAA 1111 BBBB 3333
- ...
-
- CCCC 3333 CCCC 1111
- CCCC 3333 CCCC 2222
- CCCC 3333 CCCC 3333
-
- where I think I should have got
-
- keya keyb table2.keya table3.keyb
- AAAA 1111 AAAA 1111
- BBBB 2222 BBBB 2222
- CCCC 3333 CCCC 3333
-
-
- Is this a bug and has it been fixed or should I be using the SET SKIP
- TO commands and not bother with SQL for this type of relation.
-
- Thanx.
- --
- | David Rowland | The British are using New Zealanders. They must |
- | Datamark Intl Ltd | really mean business ! |
- | Wellington | - General Rommel During Northern African |
- | NEW ZEALAND | Campaign WWII. |
-