From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10fec3,6b724f9364a9e412 X-Google-Attributes: gid10fec3,public X-Google-Thread: f99a8,6b724f9364a9e412 X-Google-Attributes: gidf99a8,public X-Google-Thread: fa528,6b724f9364a9e412 X-Google-Attributes: gidfa528,public X-Google-Thread: fa4f9,6b724f9364a9e412 X-Google-Attributes: gidfa4f9,public X-Google-Thread: f5464,6b724f9364a9e412 X-Google-Attributes: gidf5464,public X-Google-ArrivalTime: 2002-08-15 00:59:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!news2.euro.net!news2.euro.net!transit.news.xs4all.nl!not-for-mail From: Herman de Boer Newsgroups: comp.databases.oracle,comp.databases.oracle.server,comp.databases.oracle.tools,comp.databases.oracle.misc,comp.unix.tru64 Subject: Re: Oracle - Out of process memory Date: Thu, 15 Aug 2002 07:58:15 GMT Organization: IT Consultancy Group bv Message-ID: References: <55b03025.0208142320.2f84ab35@posting.google.com> NNTP-Posting-Host: wc-106.r-195-85-159.essentkabel.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news1.xs4all.nl 1029398378 16980 195.85.159.106 (15 Aug 2002 07:59:38 GMT) X-Complaints-To: abuse@xs4all.nl NNTP-Posting-Date: 15 Aug 2002 07:59:38 GMT User-Agent: Noworyta News Reader/2.6 Xref: archiver1.google.com comp.databases.oracle:9286 comp.databases.oracle.server:74522 comp.databases.oracle.tools:18229 comp.databases.oracle.misc:35374 comp.unix.tru64:8423 Johnny Yeung wrote: >The SQL statement is: >select distinct street_h, STREET_SEQ from building group by bldg_h, >estate_h, street_h, district_e, area_e, STREET_SEQ having (1=1) and >district_e = 'CHAI WAN' and area_e = 'HKG' ORDER BY STREET_SEQ; > > Hello Johny, this statement might be improved a lot from the following: select distinct street_h , STREET_SEQ from building where district_e = 'CHAI WAN' and area_e = 'HKG' group by bldg_h , estate_h , street_h , district_e , area_e , STREET_SEQ ORDER BY STREET_SEQ; Kind Regards, Herman de Boer sr consultant IT Consultancy Group bv