What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Number Range Query

Number Range Query
Author: Message:
Adeptus
Senior Member
****


Posts: 732
Reputation: 40
Joined: Oct 2005
RE: Number Range Query
Great!

By the way, if your subquery doesn't contain aggregates, you can also accomplish the same with a join:

SELECT * FROM foo INNER JOIN boo ON foo.bar = boo.bar AND boo.baz > 69

...which would accomplish the same as:

SELECT * FROM foo WHERE bar IN (SELECT bar FROM boo WHERE baz > 69)

There is no overwhelming reason to do it this way, but it may be slightly faster and it is the only option for cheesy databases that don't support subqueries (older MySQL).
03-01-2006 06:34 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Number Range Query - by Dempsey on 03-01-2006 at 12:50 PM
RE: Number Range Query - by RaceProUK on 03-01-2006 at 01:48 PM
RE: RE: Number Range Query - by Dempsey on 03-01-2006 at 02:32 PM
RE: Number Range Query - by Adeptus on 03-01-2006 at 05:34 PM
RE: Number Range Query - by Dempsey on 03-01-2006 at 05:54 PM
RE: Number Range Query - by Adeptus on 03-01-2006 at 06:34 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On