Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: the1donThank you for the idea and assistance. I found that the output on the DB Execute node returns either records or nothing. For example when I run a select count(*) from table (or select * from table) in a DB Execute node and there are no records in the table the pin will display a 0 which really indicates there is no data to return.When I run a DB Query node with the query select count(*) from table the pin will display 1 and the result will show 0 which is what I was looking for. Unfortunately I can't pass parameters into a DB Query. So the way I solved this was
1. Run the DB Execute node
2. Create a static node the matches the output from the DB Execute node
3. Use the CAT node to cat the results from the DB Execute node to the Static node
4. Use a filter node with similar code
message = " No records found"
c = count()
if c >1 then
message ="You have records"
emit dup_message