SQL Queries - CAST Central Base - SQL Queries on applications