20
Views
3
Comments
Solved
SQL dynamic expand inline
Question


I try to do sql like that. It ok when I test in studio

but at the run time, it return my sql is


SELECT {User}.[Username]

FROM {User}

WHERE {Users}.[Surname] LIKE ''%1%'' or {Users}.[Surname] LIKE  ''%2%'' or {Users}.[Surname] LIKE  ''%3%''


Therefore, it error by duplicate '


Please help me. Thanks



Untitled.png
2025-04-10 12-15-03
Ankit Sheshkumar Shukla
Solution

Hi @Minh Quang Nguyen 

I hope you are doing well. 

Please refer this link. It may explain in detail way click here .



Regards

Ankit S



2025-01-17 04-53-26
Minh Quang Nguyen

Thank you so much

2025-01-17 04-53-26
Minh Quang Nguyen

This is my code

2025-04-10 12-15-03
Ankit Sheshkumar Shukla
Solution

Hi @Minh Quang Nguyen 

I hope you are doing well. 

Please refer this link. It may explain in detail way click here .



Regards

Ankit S



2025-01-17 04-53-26
Minh Quang Nguyen

Thank you so much

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.