Axborot tizimlarining matematik va dasturiy ta’minoti yo’nalishi
INSERT INTO `income_and_expenditure`( `i_dream`, `expenses`) VALUES
Download 0.93 Mb. Pdf ko'rish
|
301-guruh Abdalimova Malika
- Bu sahifa navigatsiya:
- INSERT INTO `income_and_expenditure`( `i_dream`, `expenses`) VALUES (107000.3,55005.5); INSERT INTO `income_and_expenditure`( `i_dream`, `expenses`) VALUES
INSERT INTO `income_and_expenditure`( `i_dream`, `expenses`) VALUES
('170000.1','85000.6'); INSERT INTO `income_and_expenditure`( `i_dream`, `expenses`) VALUES ('9400000.3','555000.5'); INSERT INTO `income_and_expenditure`( `i_dream`, `expenses`) VALUES ('190000.3','75000.5'); 31 INSERT INTO `income_and_expenditure`( `i_dream`, `expenses`) VALUES ('107000.3','55005.5'); INSERT INTO `income_and_expenditure`( `i_dream`, `expenses`) VALUES ('145000.3','55500.5'); INSERT INTO `income_and_expenditure`( `i_dream`, `expenses`) VALUES ('770000.7','77000.7'); SELECT * FROM `cars` -cars jadvalidan barcha ustunini olish. SELECT `car_model`,`car_number` FROM `cars` - cars jadvalidan cae_model, car number ustunlarni olish. 32 SELECT DISTINCT `name` FROM `bus_stations` - bus_stations jadvalidan neme ustunidan takrorlanuvchi satrdan bittasini olish. SELECT `leader` FROM `bus_stations` LIMIT 5; - bus_stations jadvalidan laeder ustunidan dastlabki 5 ta qiymatni olish. SELECT `phone_number` FROM `bus_stations` LIMIT 4 OFFSET 3 - bus_statsions jadvalidan phone_number ustunidagi 3-qiymatdan boshlab 4 tasini olish. 33 SELECT `family`,`name` FROM `customers` WHERE `cars_bus_stations_idbus_stations`>=7 - customers jadvalidan cars_bus_stations_idbus_stations ustunidagi qiymatlardan 7 katta yoki teng qiymatlarni olish hamda family va name ustunlarni olish. SELECT * FROM `customers` WHERE `cars_idcars`>4 AND `cars_bus_stations_idbus_stations`<6 - customers jadvalidan cars_idcars ustunidagi qiymatlardan 4 dan kattasini olish va cars_bus_stations_idbus_stations ustunidagi qiymatlardan 6 dan kichk qiymatlarni olish. SELECT `leader`, `accountant` FROM `staff` ORDER BY `leader` - staff jadvalidagi leader ustunini o’sish tartibda saralash. 34 SELECT `idstaff`,`accountant` FROM `staff` ORDER BY `accountant` DESC - staff jadvalidagi accountant ustunini kamayish tartibda saralash. SELECT Concat(`car_model`,' ',`car_number`) FROM `cars` - cars jadvalidagi car_model va car_number maydonlarini birlashtirish . 35 SELECT Concat(`car_model`,' ',`car_color`,' rangda') FROM `cars` - cars jadvalidagi car_model va car_color maydonlarini matn bilan birlashtirish. SELECT Concat(`car_model`,' nomeri ',`car_number`) AS car_number FROM `cars` - cars jadvalidagi car_madel va car_number maydonlarni car_number Taxallus bilan chop etish. 36 SELECT `i_dream`,`expenses`,`i_dream`-`expenses` AS foyda FROM `income_and_expenditure` - income_and_expenditure jadvalidagi foyda ustunini ayirish orqali hosil qiliish. 37 Xulosa. “ Samarqand viloyati hududi davlat avtomobil transport xizmati xodimlari tomonidan avtotransport vositalarini hisobga olish ” nomli ma’lumotlar bazasi mantiqiy modelini tuzib chiqdik va bu ma`lumotlar bazasini yaratish va boshqarish dasturini qo`llash juda katta qulayliklar yaratdi. Bu baza orqali “ Samarqand viloyati hududi davlat avtomobil transport xizmati xodimlari tomonidan avtotransport vositalarini hisobga olish ” avtomobillar , xodimlar, avtostansiyalar haqida ma’lumotlarni tezroq , aniqroq topish,saqlash uzatish va qayta ishlash imkoniyatiga ega bo’ldik. Men bu kurs ishida ma’lumotlar bazasi texnalogiyalar haqida yangi ma’lumotlarga ega bo’ldim. Ma’lumotlar bazasi bilan ishlashni mukammal bilib oldim. Bunda asosan SQL(structured Query Language)-bu so’rov tili ko’plab opertorlardan tashkil topgan bo’lib bu orqali ma’lumotlar bazasiga murojaat qilishni o’rgandim. Sql tilini va unda ko’plab operatorlarni bilib oldim. Sqlda MASALAN, INSERT, TABLE, CREATE TABLE, DELETE ORDER BY Concat, DESC, AS,UPDATE SET va boshqa operatorlar ustida ishlashni o’rgandim. Sql tilida jadvallar yaratib jadvalga ma’lumotlar kiritishni va ustida ishlashni mashq qildim. Sql tili barcha ma’lumotlar bazasini boshqarish tizimlari uchun umumiy til hisoblanadi. 6> Download 0.93 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling