added new sql command.

sql statement with round + avg  + case