Subject | Re: Unions |
---|---|
Author | Adam |
Post date | 2005-02-21T03:42:44Z |
My 10 second experiment shows both sections of the union query using
the best index in each case. Possibly more efficient if both datasets
contain duplicates, as only one of each record will be sent across
the network. On the downside, you need to wait for both queries to be
run before you get the information back.
I would only use it if the fields matched up between the two queries.
the best index in each case. Possibly more efficient if both datasets
contain duplicates, as only one of each record will be sent across
the network. On the downside, you need to wait for both queries to be
run before you get the information back.
I would only use it if the fields matched up between the two queries.
> Yes. I was just curious if running the two as a union, vs runningthem
> separately and tallying details in the client will cause anyoptimization or
> other problems.