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 Team
Community Support Team

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 Team
Community Support Team

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
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,687)