COUNT(column_name);
COUNT(*);
SELECT COUNT(*)
FROM Universities; // выведит 7
SELECT COUNT(*) FROM Universities WHERE Location = 'Moscow'; // выведит 3
AVG(column_name);
SELECT AVG(Students) FROM Universities; // выведит 23133
MIN(column_name);
SELECT MIN(Professores) FROM Universities; // выведит 936
MAX(column_name);
SELECT MAX(Students) FROM Univerities; // выведит 57000
SUM ( [ALL | DISTINCT] expression );
SELECT SUM(Students) FROM Universities; // выведит 161935
SELECT SUM(DISTINCT Faculties) FROM Universities; // выведит 117 (в столбце Faculties присутствует 2 одинаковых записи, под ID 1 и 5. Значение столбца под ID 5 не суммируется.)
ROUND(expression, length);
SELECT ROUND(SunSeason, 1) FROM Planets;
UCASE(column_name)
SELECT UCASE(PlanetName)
FROM Planets
WHERE HavingRings = 'No';
LCASE(column_name);
SELECT LCASE(PlanetName)
FROM Planets
WHERE HavingRings = 'Yes';
LEN(column_name);
SELECT Opener, LEN(PlanetName) FROM Planets;
MID(colunm_name,start [,length]);
SELECT MID(Location, 1, 3) FROM Universities;
NOW();
SELECT UniversityName, Students, NOW() AS CurDate FROM Universities;