How to check whether a document has attachment or not?

How to check whether a document has attachment or not at backend or front end??

Try using tabFile Table and fields like attached_to_name etc

@Hafees_Kazhunkil thank you sooooooo much !!!