The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Hrm, SQL query help. by abaron2007-05-09 13:38:44
  One quick shot at it. by CynicalRyan2007-05-09 13:44:15
    actually... by ricochetv12007-05-09 13:50:35
      NOT IN () is BAD!!!!!! by merlin2007-05-09 13:51:40
        I guess... by ricochetv12007-05-09 13:57:45
          Yes, true, but in general outer joins outperform by merlin2007-05-09 13:59:37
            IN() is quite useful in some circustances though, by Scirocco 2007-05-09 14:04:27
such as replacing:
SELECT * FROM table WHERE id = 1 OR id = 2 OR id = 3;
with:
SELECT * FROM table WHERE id IN (1, 2, 3);

But using it over two tables like in the OP seems like a bad idea, it is, however, better then a few ORs and a bit nicer then doing UNIONs. :)

(just pointing it out here, not as much as a reply to merlin but rather just to toss it out into a SQL thread where people want to learn :D)
[ Reply ]
              Excellent point. Let me rephrase: by merlin2007-05-09 14:06:31
                It's actually a case of mis-optimitization. by staticsan2007-05-09 16:09:11

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)