home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!mail-to-news-gateway
- From: DELFT UNIV OF TECHNOLOGY/COMP CENTRE +31 15 784821 <Jan.vanSetten@RC.TUDelft.NL>
- Subject: Re: select * from join
- Message-ID: <01GMYCNT7LE28WWBM6@TUDRVA.TUDelft.NL>
- Sender: daemon@nrao.edu
- Organization: National Radio Astronomy Observatory
- Date: Wed, 29 Jul 1992 12:21:00 GMT
- Lines: 52
-
- >...
- > select *
- > from hosts h, hwaddr hw, ip i
- >...
- >I got random wierd results under 6.3 and 6.4 include garbage data
- >...
-
- One of our campus local Ingres users met a simular behaviour last
- week in an ABF-application trying to INSERT a joined subSELECT with
- only ONE asterix. He isolated the query, repeated it a lot of times
- and pointed out that in ~ 3% of the cases the column sequence was
- changed.
- I leaved out the INSERT, so the next query remained:
-
- SELECT *
- FROM left, right ; \p\g
-
- Running this statement over and over, I found a regular behaviour:
- the results of always the 13th, 28th and 43th call first presented
- the LAST table referenced in the FROM clause:
-
- +-------+------+ +------+-------+
- | right | left | , others | left | right |
- +-------+------+ +------+-------+
- + ~~~~~~~~~~ + + ~~~~~~~~~~ +
-
- In my opinion the 6.4 SQL Ref. Manual suggests that joined asterixes
- are allowed: "you can specify select * from tablenames" (p. 7-231).
- Further, "If order by is not specified, INGRES doesnot apply any
- special sequence to the rows of the result table" (p. 7-230).
-
- It seems to me that problems occur using single wildcards in
- SUBselects. I just informed Ingres Technical Support of my
- experiences.
-
-
- Jan.
-
- >----------------------------------------------------------------------<
- A. van Setten | post to: Post Office Box 354
- Delft University of Technology | 2600 AJ DELFT
- Computing Centre | The Netherlands
- Campus Ingres Support | ship to: Julianalaan 134
- Phone : +31 (0)15-78 4821 | 2628 BL DELFT
- " : +31 (0)15-78 5012 | The Netherlands
- Fax : +31 15-78 3787 | visitors: Michiel de Ruyterweg 10-12
- E-mail : | RC-
- Jan.vanSetten@RC.TUDelft.NL | Helpdesk: Info@RC.TUDelft.NL
- >----------------------------------------------------------------------<
-
- ========================================================================
-
-