Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
SELECT SUM (BirimFiyati ) from Urunler
----------------------------------------------------------------------------------------------------------------------------------------
-- STRİNG FONKSİYONLARI
--LEFT
--soldan , baştan belirtilen sayıda karakteri getirir...
-- adının ilk 3 karakterini getir komutu...
select LEFT (adi,3 ) from Personeller
-- adının son 3 karakterini getir komutu...
select RIGHT (adi,3 ) from Personeller
-- sayısal bir değerinde bir stringe çevirmeden sağdan ve soldan belirtilen kadar karakteri ekrana yazdırır...
select LEFT ( BirimFiyati ,1 ) from Urunler
select LEFT (cast( BirimFiyati as int ),2) from Urunler
--UPPER
select Adi from Personeller
-- bütün harfleri büyük yazdırır...
select UPPER (ADI) from Personeller
--LOWER
-- bütün büyük hafrleri küçüğe çevirir...
select LOWER ('ALİ NAKİ AğCa') from Personeller
--SUBSTRİNG
-- 2 den itibaren 6 karakter alıyor
-- yani buraya 3 e 8 girsek mesela 3. harften itibaren 8 harfi yazdırır...
SELECT SUBSTRING ( Adi ,2,6 ) from Personeller
-- LTRİM / RTRIM
SELECT ' ALİ naki'
-- LTRIM komutuyla soldaki boşluğu siler sol başa yazdırır...
select LTRIM (' ali naki')
SELECT 'ALİ naki '
select RTRIM ('ali naki ')
-- adı sutunundaki isimleri tersten yazdırır...
select reverse (Adi) from Personeller
select reverse (515136641835)
select replace ('benim adım naki','naki','adnan') adım
select replace (Adi ,'n','nnnnn') adım from Personeller
select adi ,CHARINDEX ('a', adi )from Personeller
select adi from Personeller
select * from Musteriler
-- boşluk alır...
select MusteriAdi , CHARINDEX (' ', MusteriAdi ) from Musteriler
-- musteri adı 1 den bailatıp boşluğa kadar alır ve ekrana yazar...
select SUBSTRING (MusteriAdi ,1,CHARINDEX (' ' , MusteriAdi )) from Musteriler
select MusteriAdi , SUBSTRING(MusteriAdi,CHARINDEX (' ',MusteriAdi),len (musteriadi)-(charindex (' ', musteriadi)-1)) from Musteriler
select 3+5
select 8-6
select 5*9
select 50/2
-- pi sayısını verir
select PI ()
-- 180 in sinusunu verir
select SIN (180)
--45 in cosunüsünü verir.
select COS (45)
-- üs alma
select POWER (6,2)
-- mutlak değer
select ABS (-12)
-- 0 ie 1 arasında sayı üretir...
SELECT RAND()
--sıfırlar
select FLOOR (PI())
-- 4.99999 bile olsa 4 yazdırır...
select FLOOR(4.5)
-- floor sıfırlar. randta 0 ile 1 arasında sayı üretir 100 ile çarparız bize sayıyı verir...
select FLOOR (rand()*100)
![]() |
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