NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

ÖRNEK: ADI, SOYADI, KILO, BOY VE VÜCUT_KİTLE_ENDEKSİNİ, VÜCUT_KİTLE_ENDEKSİ BAŞLIĞI ALTINDA LİSTELEYELİM

SELECT ADI,SOYADI,KILO,BOY,KILO/(BOY*BOY/100) AS VÜCUT_KİTLE_ENDEKSİ FROM TALEBE;
------------
ÖRNEK: ÖĞRENCİLERİN ADINI, SOYADINI, VE AD VE SOYAD BİRLİKTE LİSTELENSİN.

SELECT ADI,SOYADI,CONCAT(ADI," ",SOYADI) FROM TALEBE;
------------------------
ÖRNEK: SOYADI FARKLI OLANLARI LİSTELEYELİM:

SELECT DISTINCT(SOYADI) FROM TALEBE;
-------------------
ÖRNEK: KİLOSU EN BÜYÜK OLAN ÖĞRENCİNİN ADI, SOYADI VE KİLOSUNU LİSTELEYELİM
SELECT ADI,SOYADI, KILO FROM TALEBE WHERE KILO=(SELECT MAX(KILO) FROM TALEBE);
-------------------
ÖRNEK: KILOSU 60 İLE 80 ARASINDA OLALAR

SELECT * FROM TALEBE WHERE KILO BETWEEN 60 AND 80;
-------------
ÖRNEK: ADININ İLK HARFİ “A” OLANLAR

SELECT * FROM TALEBE WHERE ADI LIKE "A%";
----------
ÖRNEK: ÖĞRENCİLERİN KİLOLARINI %20 ARTIRARAK YÜZDE_20 BAŞLIĞI ALTINDA YUVARLANMIŞ ŞEKİLDE LİSTELYELİM.

SELECT ADI, SOYADI,KILO,ROUND(KILO+KILO*20/100) AS YÜZDE_20 FROM TALEBE
--------
SORU: ŞEHR İÇERİSİND “A” HARFİ GEÇEN ÖĞRENCİLERİN ADINI, SOYADINI VE ŞEHRİNİ ÖĞRENCİ ADINA GÖRE SIRALAYALIM:

SELECT ADI, SOYADI, SEHIR FROM TALEBE WHERE SEHIR LIKE "%A%" ORDER BY ADI;
----------
ÖRNEK: TALEBE TABLOSUNDA ADININ SON KARAKTERİ ‘A’ OLAN KAYITLARI LİSTELEYEN SQL CÜMLESİNİ YAZALIM:

SELECT * FROM TALEBE WHERE RIGHT(ADI,1)="A";
-------------
ÖRNEK: ÖĞRENCİNİN ADINI, SOYADINI, KİLOSUNU GETİRELİM. AYRICA KİLOSU 75’DEN BÜYÜKSE “AĞIR” DEĞİLSE “NORMAL” İFADESİNİ DURUM ADLI SANAL SÜTÜNA YAZDIRALIM
SELECT ADI,SOYADI,KİLO,IF(KILO>75, "AĞIR","NORMAL") AS DURUM FROM TALEBE;
-----------
ÖRNEK: ÖĞRENCİ TABLOSUNDAKİ TÜM KAYITLAR VE NOTLARDAKİ EŞLEŞEN KAYITLAR:

SELECT * FROM OGRENCI O LEFT OUTER JOIN NOTLAR N ON (O.O_ID=N.O_ID)
-----------
Örnek: ABC tablosuna yeni kayıtlar ekleyelim.

INSERT INTO ABC(ADI, SOYADI, TCNO, SINIF, DT)
VALUES("MUSA","KART","12345678901",1, "2010-09-24");
-------------
Örnek : Şimdi mevcut bir tablonun bazı şartlara uyan (ABC) kayıtlarını kullanarak yeni tablo oluşturalım. ABC tablosunda Soyadi ‘C’ ile başlayan kayıtları alarak XYZ adında bir tablo oluşturalım:

CREATE TABLE XYZ SELECT * FROM ABC WHERE SOYADI LIKE 'C%';
------------
Yeni oluşturulan AAA tablosunun yapısına bakalım:

SHOW COLUMNS FROM AAA;
------------
     
 
what is notes.io
 

Notes is a web-based application for online 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 14 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.