Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-05-2007, 10:20 PM
André Hänsel
 
Posts: n/a
Default Dependent Subquery?

Hi,

why is this subquery dependent?

SELECT * FROM SYSlogs.pflog WHERE chargedomain IN (SELECT target FROM
SYSconf.aliasdomains WHERE name IN ('xxx','yyy','zzz')) OR
chargedomain=0

1 | PRIMARY | pflog | ALL | chargedomain | NULL | NULL | NULL |
5659150 | Using where
2 | DEPENDENT SUBQUERY | aliasdomains | ALL | name | NULL | NULL |
NULL | 92 | Using where

Regards,
André
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-06-2007, 08:52 AM
Captain Paralytic
 
Posts: n/a
Default Re: Dependent Subquery?

On 5 Dec, 23:20, "André Hänsel" <an...@webkr.de> wrote:
> Hi,
>
> why is this subquery dependent?
>
> SELECT * FROM SYSlogs.pflog WHERE chargedomain IN (SELECT target FROM
> SYSconf.aliasdomains WHERE name IN ('xxx','yyy','zzz')) OR
> chargedomain=0
>
> 1 | PRIMARY | pflog | ALL | chargedomain | NULL | NULL | NULL |
> 5659150 | Using where
> 2 | DEPENDENT SUBQUERY | aliasdomains | ALL | name | NULL | NULL |
> NULL | 92 | Using where
>
> Regards,
> André


I don't know, but why are you using a subquery when a JOIN is far
superior?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:21 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.