How to validate database column value

I have done writing the keywords for database connection. Works well.
Now I wanted to check table1, where ID=123 then column A must = true. Else test step, validation failed.
Which method can be used? Query in data files then call them? Or other better way?
Need some guidelines how to do it.

Anyone could guide?
The samples at katalon doc doesn’t work. How to parse the data files database query result as part of validation in test step?

This guide might help you!

Set everything you get from your database into variables and use those for your control statements.

Edit: If you want some examples look here: Control Statements