Archive for the ‘sql’ Category

I always forget the syntax for “CASE” in SQL.   SELECT other_columns,         SUM(CASE col WHEN val THEN result ELSE 0 END) AS singlevalue_result,         SUM(CASE WHEN col BETWEEN val1 AND val2 THEN result ELSE 0 END) AS betwen_values_result,         SUM(CASE WHEN col1 = val3 AND  [ Read More ]

Categories: sql, work
  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin

Popular Posts

Ubuntu on Dell Studi

Ubuntu strikes again, it's been a while since I installed ...

Y'all Come Back Now

FYI: The pictures are all links to a bigger sized ...

Neilsen's Web Design

Jakob Neilsen "Top 10 Mistakes in Web Design" (the 2006 ...

Atlanta - Week 1

Moving to a foreign country is strange, here are the ...

Mp3s!

Rythymbox and Totem both cried when I asked them to ...