Question

COLUMN COMBINED IN DATA SOURCE DESIGNER

  • 1 October 2021
  • 3 replies
  • 63 views

Userlevel 3
Badge +7

Ok so i am having a massive brain cramp and know that this will probally be a easy fix. LOL

 

i am trying to create a column that register if something is in bay 1 with a WDR of bay 2, below is what i thought was the answer but i keep getting error messages, Any help would be greatly appreciated

 

CASE WHEN (BAY_NO = 'LM' and WAIV_DEV_REJ_NO = 'G%') THEN '1' ELSE '0' END)


This topic has been closed for comments

3 replies

Userlevel 7
Badge +28

Try

 

CASE WHEN (BAY_NO = 'LM' and WAIV_DEV_REJ_NO LIKE 'G%') THEN '1' ELSE '0' END)

 

You can’t equal a wildcard.

Userlevel 7
Badge +19

If this is the exact syntax you are using the parenthesis are not correct. Remove last end parenthesis if that is the case.

CASE WHEN (BAY_NO = 'LM' and WAIV_DEV_REJ_NO LIKE 'G%') THEN '1' ELSE '0' END

 

Userlevel 3
Badge +7

@Tomas Ruderfelt @ShawnBerk 

Thank you both,  both suggestions worked i knew it was somthing simple thank you again