{"id":259,"date":"2009-02-08T16:31:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=259"},"modified":"2009-02-08T16:31:00","modified_gmt":"1970-01-01T00:00:00","slug":"sql-server-da-kullanilan-fonksiyonlar-ve-deyimler","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2009\/02\/08\/sql-server-da-kullanilan-fonksiyonlar-ve-deyimler\/","title":{"rendered":"SQL Server da Kullanilan Fonksiyonlar ve Deyimler"},"content":{"rendered":"<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\">&nbsp;<\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 18pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Merhaba arkadaslar,<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 18pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Bu makalemizde SQL de sik&ccedil;a kullanilan bazi fonksiyonlarin ve deyimlerinin anlatimini yapacagiz.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; text-indent: -18pt;\" class=\"ListParagraphCxSpIlk\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">1-<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"><strong style=\"\">IN: <\/strong>Sik&ccedil;a kullanilan bir SQL deyimidir. Kosul belirtirken kullaniriz .<\/span><\/span><span style=\"font-size: 9pt; color: rgb(39, 44, 12); line-height: 115%; font-family: Arial;\"> <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 72pt; text-indent: -18pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">a.<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Mesela Musteri adli tablomuzda asagidaki kayitlar olsun ve biz de id&rsquo;si 2 ve 3 olan kayitlari listelemek istiyoruz;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 36pt;\" class=\"ListParagraphCxSpSon\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Osman\/11_3_resim1.jpg\" \/><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: 'Courier New';\">SELECT<\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: 'Courier New';\"> <span style=\"color: gray;\">*<\/span> <span style=\"color: blue;\">FROM<\/span> MUSTERI <span style=\"color: blue;\">WHERE<\/span> ID <span style=\"color: gray;\">IN<\/span> <span style=\"color: gray;\">(<\/span>2<span style=\"color: gray;\">,<\/span>3<span style=\"color: gray;\">) <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpIlk\"><span style=\"\"><img decoding=\"async\" loading=\"lazy\" height=\"57\" width=\"148\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Osman\/11_3_resim2.jpg\" \/><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpIlk\"><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; text-indent: -18pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">2-<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"><strong style=\"\">DATEDIFF(d,birinci Tarih, ikinci Tarih )<\/strong> : Iki tarih arasindaki farki d&ouml;nd&uuml;r&uuml;r. &Ccedil;ok&ccedil;a Ihtiyaciniz olacagini d&uuml;s&uuml;n&uuml;yorum<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; line-height: normal;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">DECLARE<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @Date1 <span style=\"color: blue;\">smalldatetime<\/span> <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; line-height: normal;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">DECLARE<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @Date2 <span style=\"color: blue;\">smalldatetime<\/span> <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; line-height: normal;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; font-family: 'Courier New';\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; line-height: normal;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SET<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @Date1 <span style=\"color: gray;\">=<\/span> <span style=\"color: red;\">&#8216;2009.10.01&#8217;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; line-height: normal;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SET<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @Date2 <span style=\"color: gray;\">=<\/span> <span style=\"color: red;\">&#8216;2009.11.01&#8217;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; line-height: normal;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: red; font-family: 'Courier New';\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; line-height: normal;\" class=\"ListParagraphCxSpSon\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SELECT<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> <span style=\"color: fuchsia;\">DATEDIFF<\/span><span style=\"color: gray;\">(<\/span>d<span style=\"color: gray;\">,<\/span>@Date1<span style=\"color: gray;\">,<\/span>@Date2<span style=\"color: gray;\">)<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 0.6pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: red; line-height: 115%; font-family: 'Courier New';\">Sonu&ccedil; = <\/span><span style=\"font-size: 10pt; color: gray; line-height: 115%; font-family: 'Courier New';\">31 <\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 36pt; text-indent: -18pt;\" class=\"ListParagraph\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">3-<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"><strong style=\"\">UPPER(str):<\/strong> STR metnindeki karakterlerin hepsini b&uuml;y&uuml;k harfe &ccedil;evirir.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">DECLARE<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @strBuyuk <span style=\"color: blue;\">nvarchar<\/span><span style=\"color: gray;\">(<\/span>50<span style=\"color: gray;\">)<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SET<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @strBuyuk <span style=\"color: gray;\">=<\/span> <span style=\"color: red;\">&#8216;Osman KALender&#8217;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: 'Courier New';\">SELECT<\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: 'Courier New';\"> <span style=\"color: fuchsia;\">UPPER<\/span><span style=\"color: gray;\">(<\/span>@strBuyuk<span style=\"color: gray;\">)<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: red; line-height: 115%; font-family: 'Courier New';\">Sonu&ccedil;<\/span><span style=\"font-size: 10pt; color: gray; line-height: 115%; font-family: 'Courier New';\"> : OSMAN KALENDER<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 36pt; text-indent: -18pt;\" class=\"ListParagraph\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">4-<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"><strong style=\"\">LOWER(str):<\/strong> STR metnindeki karakterlerin hepsini k&uuml;&ccedil;&uuml;k harfe &ccedil;evirir.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">DECLARE<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @strKucuk <span style=\"color: blue;\">nvarchar<\/span><span style=\"color: gray;\">(<\/span>50<span style=\"color: gray;\">)<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SET<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @strKucuk <span style=\"color: gray;\">=<\/span> <span style=\"color: red;\">&#8216;Osman KALender&#8217;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SELECT<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> <span style=\"color: fuchsia;\">LOWER<\/span><span style=\"color: gray;\">(<\/span>@strKucuk<span style=\"color: gray;\">)<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: gray; font-family: 'Courier New';\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: red; font-family: 'Courier New';\">Sonu&ccedil;<\/span><span style=\"font-size: 10pt; color: gray; font-family: 'Courier New';\"> : osman kalender<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: gray; font-family: 'Courier New';\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; text-indent: -18pt; line-height: normal;\" class=\"ListParagraph\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">5-<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"><strong style=\"\">BETWEEN: <\/strong>Verilen kosuldaki iki deger arasinda olan kayitlari listelemek i&ccedil;in kullanilir. <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SELECT<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> <span style=\"color: gray;\">*<\/span> <span style=\"color: blue;\">FROM<\/span> MUSTERI <span style=\"color: blue;\">WHERE<\/span> ID <span style=\"color: gray;\">BETWEEN<\/span> 1 <span style=\"color: gray;\">AND<\/span> 2<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\"><img decoding=\"async\" loading=\"lazy\" height=\"57\" width=\"156\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Osman\/11_3_resim3.jpg\" \/><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpIlk\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; text-indent: -18pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">6-<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"><strong style=\"\">IsNull(@Deger1,@Deger2)<\/strong> <span style=\"\">&nbsp;<\/span>: Isnull fonksiyonu eger @Deger1 NULL ise @Deger2 yi degilse @Deger1 i d&ouml;nd&uuml;r&uuml;r.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; line-height: normal;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">DECLARE<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @Deger1,@Deger2 <span style=\"color: blue;\">int<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; line-height: normal;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SET<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> @DEger2 <span style=\"color: gray;\">=<\/span> 5<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: 'Courier New';\">SELECT<\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: 'Courier New';\"> <span style=\"color: fuchsia;\">ISNULL<\/span><span style=\"color: gray;\">(<\/span>@Deger1<span style=\"color: gray;\">,<\/span>@Deger2<span style=\"color: gray;\">)<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: red; line-height: 115%; font-family: 'Courier New';\">Sonu&ccedil;<\/span><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: 'Courier New';\">: 5<\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"><strong style=\"\"><span style=\"\">&nbsp;&nbsp; <\/span><\/strong><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: small; font-family: Calibri;\">@Deger1 degiskeni set edilmedigi i&ccedil;in NULL dur. Bu y&uuml;zden de @Deger2 degiskenin sonucunu d&ouml;nd&uuml;rm&uuml;st&uuml;r.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; text-indent: -18pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">7-<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><strong><span style=\"font-size: 9pt; color: rgb(39, 44, 12); line-height: 115%; font-family: Arial;\"><span style=\"font-size: 11pt; line-height: 115%; font-family: Calibri;\"><span style=\"color: rgb(0, 0, 0);\">MAX, MIN, AVG<\/span><\/span>:<\/span><\/strong><span style=\"font-size: 9pt; color: rgb(39, 44, 12); line-height: 115%; font-family: Arial;\"><span style=\"\">&nbsp; <\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Sorgu c&uuml;mlesindeki en b&uuml;y&uuml;k degeri, en k&uuml;&ccedil;&uuml;k degeri ve degerlerin ortalamasini bulmak i&ccedil;in kullanilir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 9pt; color: rgb(39, 44, 12); line-height: 115%; font-family: Arial;\"><br \/>\n<\/span><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\"><img decoding=\"async\" loading=\"lazy\" height=\"85\" width=\"440\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Osman\/11_3_resim4.jpg\" \/><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: 'Courier New';\"><span style=\"\">&nbsp;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: 'Courier New';\">SELECT<\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: 'Courier New';\"> <span style=\"color: fuchsia;\">MAX<\/span><span style=\"color: gray;\">(<\/span>UCRET<span style=\"color: gray;\">),<\/span><span style=\"color: fuchsia;\">MIN<\/span><span style=\"color: gray;\">(<\/span>UCRET<span style=\"color: gray;\">),<\/span><span style=\"color: fuchsia;\">AVG<\/span><span style=\"color: gray;\">(<\/span>UCRET<span style=\"color: gray;\">)<\/span> <span style=\"color: blue;\">FROM<\/span> MUSTERI<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: 10pt; line-height: 115%; font-family: 'Courier New';\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"\"><img decoding=\"async\" loading=\"lazy\" height=\"75\" width=\"300\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Osman\/11_3_resim5.jpg\" \/><\/span><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"ListParagraphCxSpOrta\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; text-indent: -18pt; line-height: normal;\" class=\"ListParagraphCxSpSon\"><span style=\"font-size: 9pt; color: rgb(39, 44, 12); font-family: Arial;\"><span style=\"\">8-<span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><strong style=\"\"><span style=\"font-size: 9pt; color: rgb(39, 44, 12); font-family: Arial;\"><span style=\"\">&nbsp;<\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">UNION ve UNION ALL: <\/span><\/strong><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Join deyimine benzer is yapar. Fakat Join den farkli olarak deger d&ouml;nd&uuml;rmesini istedigimiz tablolarda ya ayni sayida kolon bulunacak ya da ayni sayida kolon se&ccedil;ecegiz. Sadece UNION kullanirsak iki tabloda ayni olan degerleri tekrarlamaz ve bir kere g&ouml;sterir. UNION ALL kullanirsak iki tabloda ayni degerler olsa bile hepsini g&ouml;sterir.<br style=\"\" \/>\n<br style=\"\" \/>\n<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 9pt; font-family: Arial;\">MUSTERI tablosu<br \/>\n<span style=\"\"><img decoding=\"async\" loading=\"lazy\" height=\"86\" width=\"442\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Osman\/11_3_resim6.jpg\" \/><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 9pt; font-family: Arial;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 9pt; font-family: Arial;\">CALISANLAR tablosu<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 9pt; font-family: Arial;\"><img decoding=\"async\" loading=\"lazy\" height=\"103\" width=\"442\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Osman\/11_3_resim7.jpg\" \/><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 9pt; font-family: Arial;\"><br \/>\n<\/span><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SELECT<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> <span style=\"color: gray;\">*<\/span> <span style=\"color: blue;\">FROM<\/span> MUSTERI <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">UNION ALL <\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">SELECT<\/span><span style=\"font-size: 10pt; font-family: 'Courier New';\"> <span style=\"color: gray;\">*<\/span> <span style=\"color: blue;\">FROM<\/span> CALISANLAR<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"\"><img decoding=\"async\" loading=\"lazy\" height=\"179\" width=\"313\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Osman\/11_3_resim8.jpg\" \/><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">Bir sonraki makalede g&ouml;r&uuml;smek &uuml;zere&hellip;.<\/span><\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Bu makalemizde SQL de sik&#231;a kullanilan bazi fonksiyonlarin ve deyimlerinin anlatimini yapacagiz. (IN, DATEDIFF, UPPER, LOWER, BETWEEN, IsNull, MAX, MIN, AVG, UNION, UNION ALL)<\/p>\n","protected":false},"author":550,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[422],"tags":[6327,5991,6478,6429,5297,6454,6469,6418,4957,6132,6444,5820,6216,6286,6488,3877,4557,5120,5151,5586],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/259"}],"collection":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/users\/550"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}