How to get the custom field value using SQL query

How to get the custom field value using SQL query