Topshiriq 6
1.
CREATE TABLE talaba(id INT, nomi VARCHAR(100), yoshi= int);
2.
INSERT INTO talaba (id, nomi, yosh) VALUES (4,”Temur”,19);
3.
UPDATE sotuvchi SET Ismi = 'Sitora', Familiyasi= 'Guruhi' WHERE Sotuvchi_ID = 1;
4.
DELETE FROM sotuvchi WHERE Ismi='Sitora';
5.
DROP
TABLE talaba;
6.
ORDER
BY INC DESC
7.
SELECT TOP 3 *
FROM sotuvchi;
8.
SELECT * FROM sotuvchi LIMIT 3;
9.
SELECT TOP 50 PERCENT * FROM
sotuvchi;
10.
SELECT TOP 3 * FROM sotuvchi WHERE shaxri=Jizzax';
11.
SELECT MIN(Tartib) AS minimumi FROM sotuvchi;
12.
SELECT COUNT(Sotuvchi_ID) FROM sotuvchi;
13.
SELECT AVG(mahsulot_narxi)
from buyurtma;
14.
SELECT SotuvchiID AS ID, SotuvchiName
AS sotuvchi FROM sotuvchi;
15.
SELECT SotuvchiID AS ID, SotuvchiName AS [sotuvchi ismi] FROM sotuvchi;
16.
SELECT ismi + ', ' + yoshi + ' ' + shaxri + ', ' + telefon AS
sotuvchi FROM sotuvchi;
Yuqorida ko`rsatilgan 4 ta so`rovni menga gapirib, ishlatib
berasiz. So`rayotgan paytimda har hil qilib ishlatishni
so`rayman. Keyin wordga taxlab tizimga yuklaysiz. Menga
og`zaki daklad qilmaganlarning bahosi 0 bo`ladi.