NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Gruplandırma işlemleri
select Alan,GrupFonksiyonu From Tablo Where Koşul Group BY Alan Havıng Koşul



her ildeki öğrenci sayısını listeleyen sorgu:
SELECT ADRES,COUNT(*)AS SAYI FROM KAYIT GROUP BY ADRES;
1-EDİRNE-2
2-İSTANBUL-3
3-TEKİRDAĞ-2
HER İLDEKİ TOPLAM AİDATI LİSTELEYEN SORGU ;
SELECT ADRES,SUM(AİDAT)AS SAYI FROM KAYIT GROUP BY ADRES;( TOPLAMI)
SELECT ADRES,AVG(AİDAT)AS SAYI FROM KAYIT GROUP BY ADRES;(ORTALAMA)
SELECT ADRES,MAX(AİDAT)AS SAYI FROM KAYIT GROUP BY ADRES;(İLE GÖRE EN YÜKSEK AİDAT)
SELECT ADRES,MİN(AİDAT)AS SAYI FROM KAYIT GROUP BY ADRES;(İLE GÖRE EN DÜŞÜK AİDAT)
havıng kısmı : gruplama alanına veya grup fonksiyonu ile üretilen değere koşul koymak için kullanılır.
where kısmı : grup fonksiyonu ile üretilen değer dışındaki değerlere koşul koymak için.
doğum yılını aynı olanlara göre sıralama
SELECT YEAR(DOĞUM_TARİHİ) , COUNT(*) AS ÖĞR_SAYISI FROM KAYIT GROUP BY YEAR(DOĞUM_TARİHİ);

tekirdağ dışındaki illerin öğrenci sayılarını listeleyen sorgu
SELECT ADRES, COUNT (*) AS ÖĞR_NO FROM KAYIT WHERE ADRES<>'TEKİRDAĞ' GROUP BY ADRES;
ÖĞRENCİ SAYISI 2 DEN FAZLA OLAN İLLERİ LİSTELEYEN SORGU ;
SELECT ADRES, COUNT (*) AS ÖĞR_NO FROM KAYIT GROUP BY ADRES HAVING COUNT(*)>2;
HER İLDE 300 TL DEN FAZLA A,DAT VEREN ÖĞRENC, SAYISINI LİST.SORGU
SELECT ADRES, COUNT (*) AS ÖĞR_NO FROM KAYIT WHERE AİDAT>300 GROUP BY ADRES;




HAZIR FONKSİYONLAR::
_METİN FONKSİYONLARI:
-_BİRLEŞTİRME: SQL SERVER ORACLE,MYSQL (SELECT ADI + ' ' + ADRES AS ADI_ADRES FROM KAYIT;) ADI VE ADRESİ YNYANA + CONCAT('METİN','METİN'....)
-_PARÇALAMA SUBSTRING (METİN,BAŞLANGIÇ,KARAKTER SAYISI) (SELECT ADI,SUBSTRING(ADRES,1,3) AS ADRES FROM KAYIT;)
-_BÜYÜK KUCUK HARF DEĞİŞİMİ (LOWER,UPPER) (LOWER(METİN) UPPER(METİN))
SELECT ADI,LOWER (ADRES) AS ADRES FROM KAYIT; ( ADRESİ KÜÇÜK HARFE DÖNÜŞTÜRME)
-_ BOŞLUKLARI KALDIRMA SQL'DE YOK (?) ORACLE MYSQL ( LTRIM,RTRIM) (SELECT LTRIM(ADI) AS ADI, ADRES FROM KAYIT;
SOLDAKİ BOŞLUKLARI SILEN SORGU)
-_ UZUNLUK BULMA SQL SERVER (LEN) ORACLE ,MYSQL(LENGTH) (SELECT ADRES,LEN(ADRES) AS UZUNLUK FROM KAYIT; HER ADRESİN KAÇ KARAKTER OLDUĞUNU LİSTELEYEN SORGU )
-_ ARAMA: SQL SERVER(CHARINDEX) ORACLE MYSQL (INSTR) CHARINDEX('ARANANDEĞER','ARAMAYERİ',BAŞLANGIÇ)
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.