web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

SQL Syntax

(0) ShareShare
ReportReport
Posted on by 35

Hello, I'm trying this query but I get syntax error, can somebody help? Thank you!

 

select sub
from subscr
where code in('MD','MD2')
and status='S'
and (notes like'%Deposit%' or notes like'%Депозит%')

 

 

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @iveliart 

     

    Could you please tell us what is the error message ?

  • Riyaz_riz11 Profile Picture
    4,219 Super User 2026 Season 2 on at

    Hi @iveliart ,

    Can you paste the error message or check whether variable type is integer or varchar if it is integer not required ' quotes.

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Verified answer
    iveliart Profile Picture
    35 on at

    Thank you I solved The problem by putting the text in double %(%%deposit%%)

  • iveliart Profile Picture
    35 on at

    Thank you I solved The problem by putting the text in double %(%%deposit%%)

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Good to know !

     

    Have a nice day !

  • iveliart Profile Picture
    35 on at

    Hi, the error message was just "Incorrect SQL syntax". Variable is varchar.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard