Check out example codes for "Cast for print sql". It will help you in understanding the concepts better.

Code Example 1

declare @x INT = 1 

PRINT 'There are ' + CAST(@x AS VARCHAR) + ' alias combinations did not match a record'

Learn ReactJs, React Native from akashmittal.com