Results 1 to 3 of 3

Thread: How to calculate Avg,Min and Max with SQL Plus

  1. #1
    Join Date
    Apr 2009
    Posts
    102

    How to calculate Avg,Min and Max with SQL Plus

    Can anyone help me in calculating Avg,Min and Max with the SQL Plus this is because i do not know how the function should be written in the SQL Plus, that is am simply nook in this programming field, so your help would be highly appreciated.

  2. #2
    Join Date
    Mar 2008
    Posts
    258

    Re: How to calculate Avg,Min and Max with SQL Plus

    The subquery needs to return the average per pilot, so something like this:

    where table_1 > (select avg(x.avg_table_1) from pilots)

    On a slightly unrelated note, which database platform uses "SQL Plus"?

    check up SQL MAX command to get highest value of data We will apply the AVG command here like this to the field mark

    SELECT avg( mark ) FROM `table_1`

  3. #3
    Join Date
    Jan 2009
    Posts
    143

    Re: How to calculate Avg,Min and Max with SQL Plus

    Code:
    SELECT class, avg( mark ) as avg_mark FROM `student` GROUP BY class
    In the above query there would be list of records where the column name will be class in that table you want to calculate the average on the mark column and that table would be consist of the table called student.

Similar Threads

  1. How to Calculate IOPS
    By ShankY.Rudeshwar in forum Windows Software
    Replies: 8
    Last Post: 30-12-2011, 10:24 PM
  2. Calculate IRR in Excel
    By superdave1984 in forum Windows Software
    Replies: 3
    Last Post: 01-12-2009, 12:46 PM
  3. How to Calculate Age Using SQL
    By BALLARI in forum Software Development
    Replies: 3
    Last Post: 16-09-2009, 03:14 PM
  4. How to calculate rwin
    By CRUZITA in forum Networking & Security
    Replies: 3
    Last Post: 06-08-2009, 12:29 PM
  5. How to calculate substitution
    By $tatic in forum Software Development
    Replies: 3
    Last Post: 25-04-2009, 08:42 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,717,383,661.31568 seconds with 16 queries