Thursday, 20 March 2014

SQL Functions

SQL Scalar functions

It returns a single value, based on the input value.
  • UCASE() - Converts a field to upper case
  • LEN() - Returns the length of a text field
  • FORMAT() - Formats how a field is to be displayed
  • ROUND() - Rounds a numeric field to the number of decimals specified
  • NOW() - Returns the current system date and time
  • LCASE() - Converts a field to lower case
  • MID() - Extract characters from a text field

SQL Aggregate Functions

It  return a single value calculated from values in column.
  • AVG() - Returns the average value
  • LAST() - Returns the last value
  • MAX() - Returns the largest value
  • COUNT() - Returns the number of rows
  • MIN() - Returns the smallest value
  • SUM() - Returns the sum
  • FIRST() - Returns the first value

      No comments:

      Post a Comment