Skip to main content
Question

COLUMN COMBINED IN DATA SOURCE DESIGNER

  • October 1, 2021
  • 3 replies
  • 82 views

Forum|alt.badge.img+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 replies.

3 replies

Forum|alt.badge.img+28
  • Superhero (Customer)
  • 1482 replies
  • October 1, 2021

Try

 

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

 

You can’t equal a wildcard.


Forum|alt.badge.img+21
  • Superhero (Employee)
  • 500 replies
  • October 1, 2021

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

 


Forum|alt.badge.img+7
  • Author
  • Sidekick
  • 65 replies
  • October 1, 2021

@Tomas Ruderfelt @ShawnBerk 

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