Professional Documents
Culture Documents
Introduction To SQL
Unit 10
Unit 10
Modern Business
Technology
Developed by
Michael Hotek
Functions
rtrim(expression)
rtrim('abcde ')
Results
abcde
• convert(datatype,expression [,style])
(1 row(s) affected)
Convert
select convert(varchar(8),pubdate,2)
from titles where title_id = 'MC3026'
Results
91.06.24
Date Conversion
Results
PC1035
sin(radians)
sin( )
Results
isnull(expression,value)
select title_id, isnull(notes, 'No notes for
title') from titles
title_id
-------- -----------------------------------------------------------------
BU1032 An overview of available database systems with ...
...
(18 row(s) affected)
Unit 10 Review