🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5080

Re: Can I get query from an other query?

#5080
From: Umberto Uderzo
Date: Mon, 09 Jul 2001 23:15
18 lines
1626 bytes
Hello Tony,

you mean that you've written a big "where" and you don't want to extend it
more that this?
Normally i solve these class of problems building a temporary table where i
put the keys of the dataset i've found since now. After this step i proceed
joining this tmp table with the remaining query. This may be seen as an
"hugly" way to work, but if the query optimizer is going crazy to solve my
query i like to help it in some way... and breaking into smaller pieces is a
good way.

Ciao... Umberto Uderzo

"Tony" <dingwq@citiz.net> ha scritto nel messaggio
news:kkjdkt44su2cn3shc81vfaitto63c3mqhn@4ax.com...
> I had a main query.
> Can I create a sub query from this main query's dataset?
> If it can't I have to write many code in "where..."
Technical Details
Message-ID: <3b4a3a58_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <kkjdkt44su2cn3shc81vfaitto63c3mqhn@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,73be5f23d19ec4c4
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-07-09 16:13:48 PST
From: "Umberto Uderzo" <umberto@uderzo.it>
Newsgroups: borland.public.cppbuilder.database.ado
References: <kkjdkt44su2cn3shc81vfaitto63c3mqhn@4ax.com>
Subject: Re: Can I get query from an other query?
Date: Tue, 10 Jul 2001 01:15:38 +0200
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 62.10.18.80
Message-ID: <3b4a3a58_2@dnews>
X-Trace: dnews 994720344 62.10.18.80 (9 Jul 2001 16:12:24 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews