12.07.2015 Views

Solution Guide for Migrating Oracle on UNIX to SQL Server - Willy .Net

Solution Guide for Migrating Oracle on UNIX to SQL Server - Willy .Net

Solution Guide for Migrating Oracle on UNIX to SQL Server - Willy .Net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<str<strong>on</strong>g>Soluti<strong>on</strong></str<strong>on</strong>g> <str<strong>on</strong>g>Guide</str<strong>on</strong>g> <str<strong>on</strong>g>for</str<strong>on</strong>g> <str<strong>on</strong>g>Migrating</str<strong>on</strong>g> <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> <strong>on</strong> <strong>UNIX</strong> <strong>to</strong> <strong>SQL</strong> <strong>Server</strong> <strong>on</strong> Windows 185CEIL Returns the CEIL (12.3) CEILING CEILING (12.3)smallest returns 13returns 13integer greaterthan nFLOOR Returns the FLOOR (12.3) FLOOR FLOOR (12.3)smallestinteger smallerthan nreturns 12returns 12MODReturns the MOD (12,5) % 12%5 returns 2reminder of mdivided by nreturns 2POWER Computes thevalue ofPOWER (10,5)returns 100000POWER POWER (10,5)returns 100000argument 1raised <strong>to</strong> thepower ofargument 2ROUNDReturns thenearest valueof the decimalas per theprecisi<strong>on</strong>specifiedTruncates thedecimalROUND(10.125,2)ROUNDROUND(10.125,2)returns 10.13 returns 10.130TRUNC TRUNC (12.54) CONVERTreturns 12CONVERT(INTEGER,12.54) returns12Character Functi<strong>on</strong>sTable 11.14 details the differences in syntax and usage between <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> and <strong>SQL</strong> <strong>Server</strong>.These functi<strong>on</strong>s are all related <strong>to</strong> text strings and characters.Table 11.14: Character Functi<strong>on</strong>s in <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> and <strong>SQL</strong> <strong>Server</strong><str<strong>on</strong>g>Oracle</str<strong>on</strong>g>Functi<strong>on</strong>Descripti<strong>on</strong> <str<strong>on</strong>g>Oracle</str<strong>on</strong>g>ExampleCHR Returns the CHR (65)character <str<strong>on</strong>g>for</str<strong>on</strong>g> returns Athe ASCII valueCONCAT Appends two CONCATstring value s ('Tom', 'Mike')return TomMikeINITCAP GivesINITCAP ('terryuppercase <strong>to</strong>adams') returnsthe title (TitleTerry Adamscase)<strong>SQL</strong> <strong>Server</strong> <strong>SQL</strong> <strong>Server</strong>Functi<strong>on</strong> ExampleCHAR CHAR (65)returns A+ 'Tom' + 'Mike'returns TomMikeNo equivalentfuncti<strong>on</strong>An algorithmcan be written<str<strong>on</strong>g>for</str<strong>on</strong>g> equivalentfuncti<strong>on</strong>ality

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!