In SQL, the CASE expression evaluates a list of conditions, returning the result for the first condition which evaluates to true.
I have the following query which works great in Postgres 9.1: SELECT users.id, GREATEST( COALESCE(MAX(messages.created_at), '2012…
sql postgresql sql-order-by aggregate-functions caseI want to change a String so that all the uppercase characters become lowercase, and all the lower case characters …
java string case case-sensitiveWhy is it not possible to use enum values as strings in a switch case? (Or what is wrong with …
java enums switch-statement case tostringI'm only able to SELECT on a table. The table has a column called inty with a value of 0 or 1 …
mysql sql caseI currently have a CASE statement that checks to see whether certain tasks are completed or not, and then returns …
sql case multiple-conditionsCan't we use CASE condition outside SQL SELECT statements? E.g.: CASE WHEN old.applies_to = 'admin' THEN _applies_to = …
postgresql conditional case plpgsqlI writing a SP that accepts as parameters column to sort and direction. I don't want to use dynamic SQL. …
sql sql-server stored-procedures sql-order-by caseI am facing a problem in executing queries with CASE statement. Based on my condition,(for eg. length), I want …
sql sybase case