How to catch an error if the DB table is empty

In our scenario we are querying DB table for records based on the certain filter condition, sometimes there is a possibility that the records are empty for that filter conditions.

In this case, how to catch an error if the DB table is empty? Also, how to throw back the error.

1 Like

@SA20276736 mabye you can take a look at these examples:

4 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.