Code for Display average marks of students using avg() function and also round it using round(). in Oracle
select rollno,round(avg(marks),2) from sc;
Output:
ROLLNO ROUND(AVG(MARKS),2)
---------- -------------------
1 78.20
2 78.60
3 95.40
4 64.80
5 72.80