cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to get rows from SQL server filtering a field with null?

Hello!

 

Is it possible to filter SQL rows from SQL Server by a column containing a null value? 

 

For example:

input_reason_code eq 1 and output_reason_code eq null 

 

Both input and output reason codes are numeric but accept a null value. How to filter that?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: How to get rows from SQL server filtering a field with null?

Hi @Anonymous,

 

 

Yes, the filter Query under SQL Server Get Rows would work with the null value.

 

Just copy and paste the formula you specified under the Filter Query part of the SQL Server Get Rows Action, then you should be able to filter the table with the rows expected:

input_reason_code eq 1 and output_reason_code eq null 

For Example:

79.PNG

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: How to get rows from SQL server filtering a field with null?

Hi @Anonymous,

 

 

Yes, the filter Query under SQL Server Get Rows would work with the null value.

 

Just copy and paste the formula you specified under the Filter Query part of the SQL Server Get Rows Action, then you should be able to filter the table with the rows expected:

input_reason_code eq 1 and output_reason_code eq null 

For Example:

79.PNG

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (5,450)