Results 1 to 4 of 4

Thread: What are the different aggregate function in the SQL?

  1. #1
    Join Date
    Nov 2009
    Posts
    70

    What are the different aggregate function in the SQL?

    Hi,


    Please let me know What are the different aggregate function in the SQL? Actually I recently started the SQL course. So I just want to aware about aggregate function.

    If you know any aggregate function then please share with me.
    Your help will be greatly appreciated.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What are the different aggregate function in the SQL?

    Hi,

    I also studying the SQL, below are some aggregate functions of the SQL which are I know:

    1. Max : Used to find out the maximum among the column values

    2. Avg : Used to calculate the average value o the column

    3. Count : Used to count the total column value

    4. Sum : Used to find out the sum of the column values

    5. Min : Used to find out the minimum among the column values

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: What are the different aggregate function in the SQL?

    Hi friends,

    Following are some SQL queries which will explain you the use of the different aggregate functions:

    *. Select sum(mark) from student.

    *. Select avg(mark) from student.

    *. Select count(stud_name) from student.

    *. Select min(percentage) from student.

    *. Select max(percentage) from student.


    Please try these queries.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What are the different aggregate function in the SQL?

    Hi,

    Aggregate function plays very important role in the complicate SQL transactions.

    Using different aggregate functions you are able do the transaction such as find out the max or min value from the entire table, or to calculate the sum of the values from table. sum(), min(), count(),avg() are some available aggregate functions in the SQL.

Similar Threads

  1. Will I get a job if my final year aggregate score is below 60%?
    By Prog^1 in forum Education Career and Job Discussions
    Replies: 3
    Last Post: 13-03-2012, 01:03 PM
  2. How to aggregate HP A5500-48G EI IRF port
    By The$Adjuster in forum Hardware Peripherals
    Replies: 4
    Last Post: 14-02-2012, 07:17 PM
  3. c# function equivalent to gettime function in javascript
    By Omaar in forum Software Development
    Replies: 4
    Last Post: 10-03-2010, 10:44 PM
  4. How does abstract function differs from virtual function?
    By Maddox G in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 11:32 AM
  5. Function keys don't function under windows XP
    By GunFighter in forum Hardware Peripherals
    Replies: 3
    Last Post: 08-04-2009, 11:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,921,217.23249 seconds with 16 queries