.Net Discussion Forum

Monday, August 1, 2011

Posted by Manoj Tyagi at 11:01 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Wednesday, April 13, 2011

AVG: Calculates the arithmetic mean (average) of the data values contained within a column. The column must contain numeric values. MAX and MIN: Calculate the maximum and minimum data value of the column, respectively. The column can contain numeric, string, and date/time values. SUM: Calculates the total of all data values in a column. The column must contain numeric values. COUNT: Calculates the number of (non-null) data values in a column. The only aggregate function not being applied to columns is COUNT(*). This function returns the number of rows (whether or not particular columns have NULL values). COUNT_BIG: New and Analogous to COUNT, the only difference being that COUNT_BIG returns a value of the BIGINT data type. Aggregate function Example: SELECT ProjectName, SUM(budget) TotalBudget FROM Project_Tbl GROUP BY ProjectName;


Posted by Manoj Tyagi at 12:15 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Home
Subscribe to: Comments (Atom)

Followers

Blog Archive

  • ▼  2011 (2)
    • ▼  August (1)
      • No title
    • ►  April (1)

About Me

My photo
Manoj Tyagi
Web developer at webxperts
View my complete profile
Simple theme. Powered by Blogger.