Top "Case" questions

In SQL, the CASE expression evaluates a list of conditions, returning the result for the first condition which evaluates to true.

How do I show relationships in Enterprise Architect

I have used Enterprise Architect to create a simple class diagram. What I can't figure out how to do is …

uml case relationship diagram enterprise-architect
How to catch Errno::ECONNRESET class in "case when"?

My application (Ruby 1.9.2) may raise different exceptions, including net-connection breaks. I rescue Exception => e, then do case/when to …

ruby exception-handling case errno
Invalid column name error in WHERE clause, column selected with CASE

I have a (rather complicated) SQL statement where I select data from lots of different tables, and to cope with …

sql-server tsql case where calculated-columns
CASE expression with NULL value

I'm struggling to understand how to check for a null value in a progress case expression. I want to see …

sql select case openedge progress-db
Assign T-SQL variable from CASE statement referencing previously declared variables

I am attempting to dynamically define a time period for a query and am running into an issue while converting …

sql sql-server reporting-services case dateadd
PHP: Breaks in default case switches?

switch ($var) { case 0: // Do something... break; case 1: // Do something... break; default: // Do something... break; } I've seen some people use break …

php switch-statement case break
Changing the first letter of every line in a file to uppercase

I need to change the first letter of every line in a file to uppercase, e.g. the bear ate …

bash case unicode-string
C/Arduino switch case

I'm writing code on Arduino (very similar to C, which I don't know, or very little), and I have a …

c arduino switch-statement case robot
How do you declare a type alias in a scala constructor?

If I have a class that takes a tuple in its constructor among other values such as: class Foo(a: …

class scala types case abstract
How to disable automatic capitalization while typing in Outlook 2011 on Mac?

When I type the word "IDs" (no quotes) in an email it changes to "Ids" automatically. How do I disable …

macos outlook case capitalization