Do you have to bring back all of the orders for the 100 customers? Or could
you, instead, bring back the most recent order for each of the 100 customers
and then provide drilldown funcationality to see other associated orders?
> Hi there,
>
[quoted text clipped - 8 lines]
> 100 SELECTs to return order for each customer. Two, include a join in
> the search SQL to a subquery that looks something like this:
Bob - 23 Jul 2004 16:14 GMT
Actually I have to bring all the orders for all the customers. That's
the root of the problem.
Thanks
Bob
> Do you have to bring back all of the orders for the 100 customers? Or could
> you, instead, bring back the most recent order for each of the 100 customers
[quoted text clipped - 12 lines]
> > 100 SELECTs to return order for each customer. Two, include a join in
> > the search SQL to a subquery that looks something like this:
Ed Prochak - 25 Jul 2004 21:01 GMT
> Actually I have to bring all the orders for all the customers. That's
> the root of the problem.
[quoted text clipped - 19 lines]
>>>100 SELECTs to return order for each customer. Two, include a join in
>>>the search SQL to a subquery that looks something like this:
then what does the "TOP 100" have to do with it? Sounds more like an ORDER BY
issue. Note that you can order by information not dosplayed in the SELECT.

Signature
Ed Prochak
running http://www.faqs.org/faqs/running-faq/
netiquette http://www.psg.com/emily.html
--
"Two roads diverged in a wood and I
I took the one less travelled by
and that has made all the difference."
robert frost