Expressions Using OperatorsConcatenating StringsConcatenating Strings and NULLCONCATISNULL and COALESCEConcatenating Other Data Types to StringsUsing Mathematical OperatorsUsing String FunctionsRTRIM and LTRIMLEFT and RIGHTLEN and DATALENGTHCHARINDEXSUBSTRINGCHOOSEREVERSEUPPER and LOWERREPLACENesting FunctionsUsing Date and Time FunctionsGETDATE and SYSDATETIMEDATEADDDATEDIFFDATENAME and DATEPARTDAY, MONTH, and YEARCONVERTFORMATDATEFROMPARTSEOMONTHUsing Mathematical FunctionsABSPOWERSQUARE and SQRTROUNDRANDLogical Functions and ExpressionsThe CASE ExpressionIIFCOALESCEAdministrative FunctionsUsing Functions in the WHERE and ORDER BY ClausesThe TOP KeywordThinking About PerformanceSummaryAnswers to the ExercisesSolutions to Exercise 4-1: Expressions Using OperatorsSolutions to Exercise 4-2: Using Mathematical OperatorsSolution to Exercise 4-3: Using FunctionsSolution to Exercise 4-4: Using Date and Time FunctionsSolution to Exercise 4-5: Using Mathematical FunctionsSolution to Exercise 4-6: Using Logical and System FunctionsSolution to Exercise 4-7: Using Functions in the WHERE and ORDER BY Clauses