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

SQL Silly by amish2005-03-10 11:11:57
  Wow, that made by brain hurt. by amish2005-03-10 14:09:14
    Subselects are very inefficient by Arachnid 2005-03-10 16:42:13
It looks like you want every row that's in TableA and not in TableB, right? Try this:
SELECT TableA.* FROM TableA LEFT JOIN TableB ON TableA.ID = TableB.ID WHERE TableB.ID IS NULL;
[ Reply ]

 

[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.)