Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 29-05-2009
Member
 
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.
Reply With Quote
  #2  
Old 29-05-2009
Member
 
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`
Reply With Quote
  #3  
Old 29-05-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to calculate Avg,Min and Max with SQL Plus"
Thread Thread Starter Forum Replies Last Post
How to Calculate IOPS ShankY.Rudeshwar Windows Software 8 30-12-2011 10:24 PM
Calculate IRR in Excel superdave1984 Windows Software 3 01-12-2009 12:46 PM
How to Calculate Age Using SQL BALLARI Software Development 3 16-09-2009 03:14 PM
How to calculate rwin CRUZITA Networking & Security 3 06-08-2009 12:29 PM
How to calculate substitution $tatic Software Development 3 25-04-2009 08:42 PM


All times are GMT +5.5. The time now is 01:48 AM.