내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Filter output result different when string value given with and without single quotes

Avatar

Level 4

Hi All,

In one of the schema I tried to use filter with a string field.

For example let the field be @PriorCY_PPDon.

When creating a query: @PriorCY_PPDon >= '3', Some values are ignored and when using @PriorCY_PPDon >= 3 all values correctly coming.

What can be the issue or is it something inbuild for adobe. 

Could someone please help me understand what is causing this issue?

 

Thanks & Regards,

Greeshma

 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 7

Hi @Greeshma_Sampath1 ,

It is due to SQL not ACC. The comparison operator will return different result based on the data type of operand used in your case. That's why, when you pass '3' you are getting a different result than 3.

 

If you want a proper numeric comparison, then the field shall be numeric one or you can write some expression to cast the values if you are sure about the possible values.

 

Cheers,

Deb

원본 게시물의 솔루션 보기

5 답변 개

Avatar

정확한 답변 작성자:
Level 7

Hi @Greeshma_Sampath1 ,

It is due to SQL not ACC. The comparison operator will return different result based on the data type of operand used in your case. That's why, when you pass '3' you are getting a different result than 3.

 

If you want a proper numeric comparison, then the field shall be numeric one or you can write some expression to cast the values if you are sure about the possible values.

 

Cheers,

Deb

Avatar

Level 4

Thank you @Deb_Tripathy for your suggestion.

Avatar

Level 3

Hi @Greeshma_Sampath1,

It depends on the data type of the field on which you are doing this operation. Incase you are sure about the values/ any queries result then i would suggest you can convert your field to appropriate data type through enrichment activity & get the expected comparison values.

Avatar

Level 4

Thank you @minakshis868318  for your suggestion.

Avatar

Administrator

Hi @Greeshma_Sampath1,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know.
Thanks!



Sukrity Wadhwa