Check out example codes for "sql cast to integer". It will help you in understanding the concepts better.

Code Example 1

SELECT CAST(25.65 AS int);

Code Example 2

-- NOTE: this is for SQL-Oracle specifically

/*
<...> : Your personal entry
*/

-- syntax:
CAST(<variable> as <variable-type>) -- in this case: <variable-type> = INTEGER

-- example:
SELECT CAST(MEMBER_NO as INTEGER)
FROM DUAL;

Learn ReactJs, React Native from akashmittal.com