{"id":1646,"date":"2016-06-01T16:25:48","date_gmt":"2016-06-01T13:25:48","guid":{"rendered":"http:\/\/www.ozgurguler.net\/blog\/?p=1646"},"modified":"2016-10-05T16:36:40","modified_gmt":"2016-10-05T13:36:40","slug":"mikro-evrakno-sorgu-icerisinde-kullanmak","status":"publish","type":"post","link":"https:\/\/www.ozgurguler.net\/blog\/mikro-evrakno-sorgu-icerisinde-kullanmak\/","title":{"rendered":"Mikro Evrakno Sorgu i\u00e7erisinde kullanmak"},"content":{"rendered":"<p>select TOP 1 (sth_exim_kodu),<\/p>\n<p>When @EvrSeri &lt;&gt; &#8221; Then RTRIM(sth_evrakno_seri) + &#8216;-&#8216;<br \/>\nElse &#8221;<br \/>\nEND<br \/>\nReturn +LTRIM(STR(sth_evrakno_sira))<br \/>\nFROM STOK_HAREKETLERI\u00a0 &#8212;\u00a0\u00a0 WHERE\u00a0\u00a0 sth_evrakno_sira=&#8217;253681&#8217;<\/p>\n<p>\/*<br \/>\ncreate FUNCTION [dbo].[fn_EvrNoSaykom] (@EvrSeri as nvarchar(6), @EvrSira as Integer)<br \/>\nRETURNS nvarchar(20) AS<br \/>\nBEGIN<br \/>\nDeclare @Type as nvarchar(20)<br \/>\nSet @Type=Case<br \/>\nWhen @EvrSeri &lt;&gt; &#8221; Then RTRIM(@EvrSeri) + &#8216;-&#8216;<br \/>\nElse &#8221;<br \/>\nEND<\/p>\n","protected":false},"excerpt":{"rendered":"<p>select TOP 1 (sth_exim_kodu), When @EvrSeri &lt;&gt; &#8221; Then RTRIM(sth_evrakno_seri) + &#8216;-&#8216; Else &#8221; END Return +LTRIM(STR(sth_evrakno_sira)) FROM STOK_HAREKETLERI\u00a0 &#8212;\u00a0\u00a0 WHERE\u00a0\u00a0 sth_evrakno_sira=&#8217;253681&#8217; \/* create FUNCTION [dbo].[fn_EvrNoSaykom] (@EvrSeri as nvarchar(6), @EvrSira as Integer) RETURNS nvarchar(20) AS BEGIN Declare @Type as nvarchar(20) Set @Type=Case When @EvrSeri &lt;&gt; &#8221; Then RTRIM(@EvrSeri) + &#8216;-&#8216; Else &#8221; END<\/p>\n","protected":false},"author":4,"featured_media":1637,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,9],"tags":[],"class_list":["post-1646","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mikro","category-mikro-yazilimevi"],"_links":{"self":[{"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/posts\/1646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/comments?post=1646"}],"version-history":[{"count":1,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/posts\/1646\/revisions"}],"predecessor-version":[{"id":1647,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/posts\/1646\/revisions\/1647"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/media\/1637"}],"wp:attachment":[{"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/media?parent=1646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/categories?post=1646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/tags?post=1646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}