SQL Functions




  • ISNULL(column_name, value) - function is used to specify how we want to treat NULL values. e.g. ISNULL(Quantity, 0))
  • AVG(column_name) - function returns the average value of a numeric column.
  • COUNT(column_name) - function returns the number of rows that matches a specified criteria.
  • COUNT(DISTINCT column_name) - function returns the number of distinct values of the specified column.
  • FIRST(column_name) - function returns the first value of the selected column.
  • LAST(column_name) - function returns the last value of the selected column.
  • MAX(column_name) - function returns the largest value of the selected column.
  • MIN(column_name) - function returns the smallest value of the selected column.
  • SUM(column_name) - function returns the total sum of a numeric column.
  • UCASE(column_name) - function converts the value of a field to uppercase.
  • LCASE(column_name) - function converts the value of a field to lowercase.
  • LEN(column_name) - function returns the length of the value in a text field.
  • ROUND(column_name, decimal) - function is used to round a numeric field to the number of decimals specified.
  • NOW() - function returns the current system date and time.
  • FORMAT(column_name, format) - function is used to format how a field is to be displayed.


Comments

Popular posts from this blog

jQuery Basics

What is the difference between a Page Layout and Master Page in SharePoint?

Accessing data from SharePoint 2010 to an ASP.NET application