Monday, November 28, 2011

You can write a SELECT statement? So what? So can I.

SELECT userid, COUNT(clueid)
FROM userclues
GROUP BY userid
HAVING COUNT(clueid)> 0

See what I did there?

Unfortunately, SQL is a relatively easy language to learn. It only has four keywords, right? <wink>. But the problem with any language is not in its correct usage; it's in what happens when someone misuses it.
Say, what does this DROP DATABASE MONEY thingy do? Drop money into my bank account? That would be awesome.
 You, sir, need to back away from the keyboard.

No comments:

Post a Comment