I'm not understanding this SELECT null FROM RDB$DATABASE
:
SELECT CK.IDCHEK,
CK.DESCHE,
(SELECT null FROM RDB$DATABASE) AS ENTEGU
FROM TC_CHECKL CK
ORDER BY CK.IDCHEK
It looks like it goes into an internal table of the bank and does not bring anything. Later in the code the programmer is saving this with insert directly into the database in the onDraw event.