Leave Details in Salary Slips

Is it possible to get leave balance details in Salary Slips? Or else please let us know how to use sql in print formats or custom scripts.

@Ram_Gopal_Rao getting the full SQL will be out of scope for the forum. Its best to you get someone to do this for your https://erpnext.org/erpnext-jobs