CREATE TABLE — jadvallarni yaratish huquqi;
CREATE VIEW — obyekt tasvirlarini yaratish huquqi;
BACKUP DATABASE — zahira
nusxalarni yaratish huquqi;
BACKUP TRANSACTION — tranzaktsiyalar zaxira nusxasini yaratish huquqi.
ISHNI BAJARISH:
1.SUM(); select sum(yoshi) as 'Xodimlarning yoshlari yigindisi' from ustozlar;
2.AVG(); select avg(ish_staji) as 'ustozlarning ortacha reytingi' from ustozlar;
3. MIN(); select min(yoshi) as 'eng yosh oqituvchi', FIO from ustozlar;
4.MAX(); select max(ish_staji) as 'eng ish staji katta ustoz' from ustozlar;
5.COUNT(); select count(*) as 'kollejdagi kafedralar soni' from kafedra;
6&7. RAND(); & ROUND(); select id, FIO, round(rand(yoshi)*100, 0) as 'random yosh'
from xodim;
8.BETWEEN(); select id, FIO, yoshi from ustozlar where yoshi between 23 and 40;
9.MID(); select mid(FIO, 1, 3) as 'boshidagi 3ta harf', FIO from ustozlar;
11 – Amaliy ish. Murakkab so‘rovlar yaratish
SQL LIMIT va SQL TOP operatorlarining vazifasi belgilangan satrlarni
chaqirishdan iborat.
SQL TOP operatori MS SQL Serverda
ishlaydi, SQL LIMIT
operatori esa MySQLda
va Oracle da ROWNUM operatori ishlaydi ularning
vazifasi
bir hil.