Skip to content
Advertisement

How to return boolean result from SQL count via JPQL

I have a simple problem with sql query. I need to get true or false, I have tried multiple methods, but without good result. This query returns 0 because I have zero records in database. Perhaps the condition should be adjusted. Thanks for all ideas.

JavaScript

Advertisement

Answer

Solved, thank you all.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement