I am new to ML, and wanted to use case expressions and pattern matching in the following way. so is it possible to have different number of paramet ...
I am new to ML, and wanted to use case expressions and pattern matching in the following way. so is it possible to have different number of paramet ...
I am trying to write a haskell interpeter for different kind of statements. One such is a switch statement. I have done the following as of now but I ...
I have this table: Expected output: SQL: Results: Can I add the system date when null in the case expression? ...
I have a complex order by with case expression. i want to order the inner results by a field_3 for example my table is - and ? = red So index ...
Say I have columns is_return_foo, is_return_bar and is_return_baz. I need to return the foo, bar, baz columns if any of the above are respectively se ...
I am new to the site and SQL. I need some help with a case expression. The requirement is as follows: I have a table T1 with two date columns - eff ...
This example is very intuitive. There are 3 cases for xs, which are empty list, list with only 1 element and list with more than 1 element. But I g ...
I am new to Ruby. My past is in Java. I am trying to use a switch case, apparently known as a case expression in Ruby. I want to accept user input, ch ...
Hi Im trying to rewrite the following code that uses CASE WHEN. I was thinking that I can instead use decode or something else? The code: ...
I have to do an insert into a single column/row from a source of multiple values. I'm using the stuff case and I'm so close, but I'm missing one of th ...
The Highschooler table has data in the below format: Highschooler ( ID, name, grade ) English: There is a high school student with unique ID and a ...
I'm currently in the process of writing a stored procedure that uses case statements to determine what queries to run. Inside one of my queries is a c ...
I need to query the patch status on Oracle databases. Since Oracle version 12c the view sys.REGISTRY$HISTORY was replaced by the view DBA_REGISTRY_SQL ...
Trying to understand the CASE (Transact-SQL) expression, but ended up with lot of confusion. Can anyone please explain the following statement in simp ...
Consider the following code: The above statement is throwing error as: My table name is V_TEST, column name is FLAGS. What am I doing wrong here ...
Here is my code: I don't know what was the wrong with above code. It is not getting executed correctly. It is showing the result likes this. ...
I've a report in SSRS and one of the parameters is based on whether a person attended an interview, failed to attend or no current feedback. The SQL ...
I'm trying to use a case statement to update a column based on the value of another column. My table called 'rma' in MySQL is as follows: Here is m ...
I have a query in SQL in which I am presenting whether or not a person has payments or outstanding charges. In this query I have a case statement, but ...
I'm creating a SQL query with a lot of nested queries and I'm trying to use the CASE expression but it is behaving weirdly. This is my query at the m ...