-- Specifically for Oracle
-- EXAMPLE
CAST('732.98' AS INT)
/* SYNTAX
CAST(<value_to_cast> AS <data_type_to_cast_to>)
*/
SELECT CAST(25.65 AS int); -- Result : 25
SELECT CAST(25.65 AS int); -- Result : 25
SELECT CAST('25.65' AS decimal(10,2)); -- Result : 25.65
SELECT CONVERT(VARCHAR(20), 10) -- Result :10
SELECT CONVERT(NVARCHAR(20), 10) -- Result :10
select convert(varchar, getdate(), 1); -- Result : mm/dd/yyyy
-- For Sql server
SELECT CAST(25.65 AS int);
/*
CAST(<value_to_cast> AS <data_type_to_cast_to>)
*/