Given the following tables:
Write SQL queries for the following:
(i) To display the number of students from each city.
(ii) To find the average age of all students.
(iii) To list the names of students and their grades.
SELECT CITY, COUNT(*) FROM STUDENTS GROUP BY CITY;
SELECT AVG(AGE) FROM STUDENTS;
SELECT STUDENTS.NAME, GRADES.GRADE FROM STUDENTS, GRADES WHERE STUDENTS.S_ID = GRADES.S_ID;
With respect to SQL, match the function given in column-II with categories given in column-I :