Malumotlar bazasi Mavzu: Ma’lumotlar bazasini loyihalash. Mohiyat – aloqa diogrammasini qurish


RTRIM -funksiyasi satr oxiridagi bo'sh joyni olib tashlash orqali asl nusxadan olingan satrni qaytaradi. LEFT


Download 0.52 Mb.
bet4/4
Sana17.06.2023
Hajmi0.52 Mb.
#1531664
1   2   3   4
RTRIM -funksiyasi satr oxiridagi bo'sh joyni olib tashlash orqali asl nusxadan olingan satrni qaytaradi.
LEFT -funktsiyasi asl satrning boshlang'ich satrini qaytaradi

  • RIGHT- funktsiyasi belgilangan sondan tashkil topgan pastki qatorni qaytaradi.

  • select upper(nomi) from pechene;



  • select replace(sifat,'alo','yaxshi') from pechene;



  • JOINlar bilan ishlash.

  • SELECT

  • column_names [,... n]

  • FROM

  • Table_1 INNER JOIN Table_2

  • ON condition

  • SELECT

  • column_names [,... n]

  • FROM

  • Table_1 LEFT JOIN Table_2

  • ON condition

# left va inner joinlar ishlash sintaksisi

  • select * from pechene left join shokolad on shokolad.miqdori=pechene.miqdori;


select * from sotilgan_p right join pechene on sotilgan_p.sanasi=pechene.sanasi;

Foydalanilgan adabiyotlar:



  • https://www.sqlshack.com/overview-of-sql-lower-and-sql-upper-functions/

  • https://www.databasestar.com/sql-upper-lower/

  • https://www.oreilly.com/library/view/sql-in-a/9780596155322/re94.html

  • https://stackoverflow.com/questions/36477856/sql-select-name-no-matter-upper-or-lower-case-letters

  • https://www.databasejournal.com/ms-sql/dealing-with-upper-and-lower-case-data/

  • https://techcommunity.microsoft.com/t5/azure-database-support-blog/sql-server-performance-upper-and-lower-functions-and-database/ba-p/3553406

  • https://www.educba.com/sql-ignore-case/

Xulosa
Bu mustaqil ishim orqali men Relatsion malumotlar bazasi haqida tushuncha oldim va NOT, OR, AND mantiqiy standart so’zlardan foydalanishni bilib oldim. SQL da Group by va Order by parametrlari orqali guruhlash va saralash mumkin ekan. Va SQLda bir qancha standart funksiyalarni foydalanishni organdim.
Download 0.52 Mb.

Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling