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 is awesome. WilliamAshbless is also awesome. by Llyr2004-12-19 00:35:15
  Bah by Hoth2004-12-19 01:33:26
    *carefully backs away from obviously delusional by tnglives 2004-12-19 01:59:08
subject*

And no, I don't mean Llyr. ;-p

Hmm. I guess there are real-world situations that a single table is sufficient to model, but I've never been fortunate enough to work on one. The biggest problem with the JOIN syntax is the fact that it works from left to right, making the occasional 30-table queries rather challenging to debug. Especially when one table is then aliased 6 times, and there are assorted left & right outer joins. Relations are defined as transitive, unless you're mucking about in SQL. *sigh*

And if it's actually faster for you to open one table, retrieve a record, open another table, retrieve all records attached to that ID, close the second table, and iterate... something's probably wrong with your DBMS. Or your (lack of) indices.

But yeah, I'll grant that it is easier to understand the latter, and good enough for a simple web site. Just don't try to convince me that more round trips between your application and the database server are more efficient.

I expect Llyr's math background will both make SQL easier to pick up, and eventually make him groan about how much it mucks up basic relational conepts, in order to make it easier on the DBMS vendors. ("But now it has native XML web services, and built-in inefficient iterative programming. It's buzzword compliant, so nobody who makes purchasing decisions will notice the real structural deficiencies.")
[ Reply ]
      You could always switch to Oracle by Spisefisken2004-12-19 02:16:54
      I'm quite proud of a recent query of mine by Arachnid2004-12-19 02:28:44
      Not what I meant by Hoth2004-12-19 02:57:43

 

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