Skip to main content

Notifications

Power Automate - Power Automate Desktop
Answered

SQL MULTIPLE SYNTAX PROCESSES

(0) ShareShare
ReportReport
Posted on by 288

Hello Community,

 

I want to know if the proposed syntax is right?

As a whole, only rows 1, 2 and 3 work for me, but rows 4 and 5 do not filter me.

If I raise individually 3, 4 and 5, the filter works for me.

 

fgonzalez515_0-1661923456938.png

 

  • fgonzalez515 Profile Picture
    fgonzalez515 288 on at
    Re: SQL MULTIPLE SYNTAX PROCESSES

    Hi @ZS440,

     

    Thanks.

    I managed to get everything with your observation.

  • Verified answer
    ZS440 Profile Picture
    ZS440 262 on at
    Re: SQL MULTIPLE SYNTAX PROCESSES

    Hi again @fgonzalez515 

    I want you to take a closer look.

    Note the use of brackets.”( )”.

    SELECT *
    FROM [Sheet1$]
    WHERE [Date] between #2014-01-01# and #2014-04-30#
    AND ([Country] ='Canada' OR [Country]='Mexico')
    AND([Product]='Carretera' OR [Product]='Amarilla' OR [Product]='Montana');

     

    ZS440_0-1662237736222.png

     

  • fgonzalez515 Profile Picture
    fgonzalez515 288 on at
    Re: SQL MULTIPLE SYNTAX PROCESSES

    Hi @ZS440,

     

    I tried this

    fgonzalez515_0-1662225551253.png

     

     

    But I also get other results, not those of the syntax

    fgonzalez515_1-1662225600628.png

     

    But in my excel it managed to filter my syntax

    fgonzalez515_2-1662225820121.png

     

     

  • ZS440 Profile Picture
    ZS440 262 on at
    Re: SQL MULTIPLE SYNTAX PROCESSES

    hi @fgonzalez515 

    sample Download the Financial Sample Excel workbook for Power BI 

    Try it !

    2022-09-04 001637.jpg

     

  • fgonzalez515 Profile Picture
    fgonzalez515 288 on at
    Re: SQL MULTIPLE SYNTAX PROCESSES

    Some help

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard