<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>ERP Nedir? | T&#252;rkiye'nin ERP Forum Platformu : Sql Sorgu</title>
  <link>http://www.erpne.org/</link>
  <description><![CDATA[XML içerik linki; ERP Nedir? | T&#252;rkiye'nin ERP Forum Platformu : SQL Veri Taban&#305; &#304;&#351;lemleri : Sql Sorgu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 00:28:03 +0000</pubDate>
  <lastBuildDate>Wed, 22 Apr 2009 14:02:44 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.10</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.erpne.org/RSS_post_feed.asp?TID=1560</WebWizForums:feedURL>
  <image>
   <title><![CDATA[ERP Nedir? | T&#252;rkiye'nin ERP Forum Platformu]]></title>
   <url>http://www.erpne.org/forum_images/logotype.png</url>
   <link>http://www.erpne.org/</link>
  </image>
  <item>
   <title><![CDATA[Sql Sorgu :  SELECT MAMUL_KODU,. (MAMUL_KODU,&amp;#039;YT&amp;#039;),....]]></title>
   <link>http://www.erpne.org/sql-sorgu_topic1560_post8730.html#8730</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://www.erpne.org/member_profile.asp?PF=551">gullpasha</a><br /><strong>Konu:</strong> 1560<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Nisan&nbsp;2009 Saat 14:02<br /><br /><DIV><P =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt">SELECT</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"> MAMUL_KODU<SPAN style="COLOR: gray">,</SPAN>&#091;dbo&#093;<SPAN style="COLOR: gray">.</SPAN>&#091;HAMKOD&#093; <SPAN style="COLOR: gray">(</SPAN>MAMUL_KODU<SPAN style="COLOR: gray">,</SPAN><SPAN style="COLOR: red">'YT'</SPAN><SPAN style="COLOR: gray">),</SPAN>&#091;dbo&#093;<SPAN style="COLOR: gray">.</SPAN>&#091;HAMKOD&#093; <SPAN style="COLOR: gray">(</SPAN>dbo<SPAN style="COLOR: gray">.</SPAN>HAMKOD<SPAN style="COLOR: gray">(</SPAN>MAMUL_KODU<SPAN style="COLOR: gray">,</SPAN><SPAN style="COLOR: red">'YT'</SPAN><SPAN style="COLOR: gray">),</SPAN><SPAN style="COLOR: red">'Y'</SPAN><SPAN style="COLOR: gray">)</SPAN> <SPAN style="COLOR: blue">FROM</SPAN> TBLSTOKURM <SPAN style="COLOR: blue">WHERE</SPAN> MAMUL_KODU <SPAN style="COLOR: gray">LIKE</SPAN> <SPAN style="COLOR: red">'6%'</SPAN></SPAN><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></P></DIV><DIV>-sorgusunu çektigim zaman 1. sütunda mamul kodunu, 2. sütunda mamul kodu 6 ile baslayan ürünlerin YT ile baslayan ham_kodunu getiriyor, ve 3. sütunda mamul kodu&nbsp;YT ile baslayan ürünlerin Y ile baslayan ham_kodunu getiriyor.&nbsp;bu vesile ile diger raporu da düzgün bir sekilde güncelleyebilirim.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Apr 2009 14:02:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.erpne.org/sql-sorgu_topic1560_post8730.html#8730</guid>
  </item> 
  <item>
   <title><![CDATA[Sql Sorgu : &#220;stad bi arkadas bu sorun i&#231;in...]]></title>
   <link>http://www.erpne.org/sql-sorgu_topic1560_post8729.html#8729</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://www.erpne.org/member_profile.asp?PF=551">gullpasha</a><br /><strong>Konu:</strong> 1560<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Nisan&nbsp;2009 Saat 13:58<br /><br />Üstad bi arkadas bu sorun için fonksiyon yazdi.<DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>alter</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>function</FONT></FONT><FONT size=2> &#091;dbo&#093;</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>.</FONT></FONT><FONT size=2>&#091;HAMKOD&#093;</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2> </FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>(</FONT></FONT><FONT size=2>@MAMULKODU </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>nvarchar</FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>(</FONT></FONT><FONT size=2>36</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>),</FONT></FONT><FONT size=2> @YTORY </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>NVARCHAR</FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>(</FONT></FONT><FONT size=2>5</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>))</P></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>returns</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>nvarchar</FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>(</FONT></FONT><FONT size=2>36</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>)</P></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>as</P><P>begin</P><P>declare</FONT></FONT><FONT size=2> @sonuc </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>nvarchar</FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>(</FONT></FONT><FONT size=2>50</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>)</P></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>IF</FONT></FONT><FONT size=2> @YTORY </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>=</FONT></FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2><FONT color=#ff0000 size=2>'YT'</P></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>BEGIN</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>SELECT</FONT></FONT><FONT size=2> @sonuc </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>=</FONT></FONT><FONT size=2> HAM_KODU </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>FROM</FONT></FONT><FONT size=2> TBLSTOKURM </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>WHERE</FONT></FONT><FONT size=2> MAMUL_KODU </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>=</FONT></FONT><FONT size=2> @MAMULKODU </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>AND</FONT></FONT><FONT size=2> HAM_KODU </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>LIKE</FONT></FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2><FONT color=#ff0000 size=2>'YT%'</FONT></FONT><FONT size=2> </P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>END</P><P>ELSE</P><P>BEGIN</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>SELECT</FONT></FONT><FONT size=2> @sonuc </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>=</FONT></FONT><FONT size=2> HAM_KODU </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>FROM</FONT></FONT><FONT size=2> TBLSTOKURM </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>WHERE</FONT></FONT><FONT size=2> MAMUL_KODU </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>=</FONT></FONT><FONT size=2> @MAMULKODU </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>AND</FONT></FONT><FONT size=2> HAM_KODU </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>LIKE</FONT></FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2><FONT color=#ff0000 size=2>'Y%'</FONT></FONT><FONT size=2> </P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>END</P><P>return </FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>(</FONT></FONT><FONT size=2>@sonuc</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>)</P></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>end</P><P>GO</P></FONT></FONT></DIV><DIV>&nbsp;</DIV><DIV>fonksiyon bu sekilde, benim ihtiyacimi tamamen karsiliyor.</DIV>]]>
   </description>
   <pubDate>Wed, 22 Apr 2009 13:58:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.erpne.org/sql-sorgu_topic1560_post8729.html#8729</guid>
  </item> 
  <item>
   <title><![CDATA[Sql Sorgu : &#220;stad,  Bu tablo aslinda tblstokurm...]]></title>
   <link>http://www.erpne.org/sql-sorgu_topic1560_post8726.html#8726</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://www.erpne.org/member_profile.asp?PF=551">gullpasha</a><br /><strong>Konu:</strong> 1560<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Nisan&nbsp;2009 Saat 12:02<br /><br /><P>Üstad, </P><DIV>Bu tablo aslinda tblstokurm tablosu ve Ürünlerimiz çok seviyeli reçetelerden olusuyor.</DIV><DIV>&nbsp;</DIV><DIV>Örnekten gidersek, C stogunun A stogu ile bir baglantisi yok, sadece B stogunun hammaddesi. Ayni sekilde D stogunun A ve B stogu ile ilgisi yok, sadece C stogunun hammaddesi.</DIV><DIV>Bu sekilde A ile C ve D stoklari arasinda baglanti kuramiyorum. Sanirim bir fonksiyon yazilarak bu gibi istekere cevap verilen çözümler üretilebiliyormus ama SQL de fonksiyon yazma olayina girebilmis degilim. </DIV><DIV>&nbsp;</DIV><DIV>bir türlü yapamadim bunu gitti :((</DIV>]]>
   </description>
   <pubDate>Wed, 22 Apr 2009 12:02:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.erpne.org/sql-sorgu_topic1560_post8726.html#8726</guid>
  </item> 
  <item>
   <title><![CDATA[Sql Sorgu : O zaman ne istedigini anlamadim...]]></title>
   <link>http://www.erpne.org/sql-sorgu_topic1560_post8724.html#8724</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://www.erpne.org/member_profile.asp?PF=483">Conari</a><br /><strong>Konu:</strong> 1560<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Nisan&nbsp;2009 Saat 09:56<br /><br />O zaman ne istedigini anlamadim üstadim. <DIV>ben reçeteyi yan yana yazdirmak istiyorsun zannettim.</DIV><DIV>Sen Reçetede olan olmayan tüm ürünleri mi yazmak istiyorsun?</DIV><DIV>Ham_kodu3-4-5...100 e kadar gider.</DIV><DIV>&nbsp;</DIV><DIV>Galiba anladim benim istedigimi istiyorsun. ben YM ler hariç istiyordum bunu</DIV><DIV><img src="http://www.erpne.org/smileys/smiley36.gif" height="17" width="17" border="0" align="absmiddle" alt="LOL" /></DIV><span style="font-size:10px"><br /><br />Düzenleyen Conari - 22&nbsp;Nisan&nbsp;2009 Saat 10:08</span>]]>
   </description>
   <pubDate>Wed, 22 Apr 2009 09:56:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.erpne.org/sql-sorgu_topic1560_post8724.html#8724</guid>
  </item> 
  <item>
   <title><![CDATA[Sql Sorgu : select  mamul kodu, case when...]]></title>
   <link>http://www.erpne.org/sql-sorgu_topic1560_post8721.html#8721</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://www.erpne.org/member_profile.asp?PF=551">gullpasha</a><br /><strong>Konu:</strong> 1560<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Nisan&nbsp;2009 Saat 09:37<br /><br />select <DIV>mamul kodu,</DIV><DIV>case when OPNO=001 then HAM_KODU&nbsp;end as HAM_KODU1,</DIV><DIV>case when OPNO=002 then HAM_KODU&nbsp;end as HAM_KODU2,</DIV>case when OPNO=003 then HAM_KODU&nbsp;end as HAM_KODU3<DIV>from.......<BR></DIV><DIV>üstad burada C veya D hammaddeleri ayni zamanda A'ya bagli olsaydi dedigini çalistirabilirdim. ama su anda C ve D Hammaddeleri A'ya bagli olmadigi için OPNO ya göre çagirmada C ve D gelmeyecek.</DIV><DIV>&nbsp;</DIV><DIV>Sanirim bu gibi sorgular fonksiyon yazmayla gideriliyor fakat fonksiyon yazamiyorum ben Sql'de üstad<img src="http://www.erpne.org/smileys/smiley19.gif" height="17" width="17" border="0" align="absmiddle" alt="Cry" />.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Apr 2009 09:37:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.erpne.org/sql-sorgu_topic1560_post8721.html#8721</guid>
  </item> 
  <item>
   <title><![CDATA[Sql Sorgu : select  mamul kodu, case when...]]></title>
   <link>http://www.erpne.org/sql-sorgu_topic1560_post8717.html#8717</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://www.erpne.org/member_profile.asp?PF=483">Conari</a><br /><strong>Konu:</strong> 1560<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Nisan&nbsp;2009 Saat 18:00<br /><br />select <DIV>mamul kodu,</DIV><DIV>case when OPNO=001 then HAM_KODU&nbsp;end,</DIV><DIV>case when OPNO=002 then HAM_KODU&nbsp;end,</DIV>case when OPNO=003 then HAM_KODU&nbsp;end<DIV>from.......<BR>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 21 Apr 2009 18:00:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.erpne.org/sql-sorgu_topic1560_post8717.html#8717</guid>
  </item> 
  <item>
   <title><![CDATA[Sql Sorgu : Merhaba Arkadaslar, Benim bir...]]></title>
   <link>http://www.erpne.org/sql-sorgu_topic1560_post8709.html#8709</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://www.erpne.org/member_profile.asp?PF=551">gullpasha</a><br /><strong>Konu:</strong> 1560<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Nisan&nbsp;2009 Saat 13:30<br /><br /><P>Merhaba Arkadaslar,</P><P>Benim bir sorum olacak.</P><P>Mamul_Kodu&nbsp; Ham_kodu</P><DIV></DIV>&nbsp;&nbsp;&nbsp;&nbsp; A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B<DIV>&nbsp;&nbsp;&nbsp;&nbsp; B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D</DIV><DIV>&nbsp;</DIV><DIV>seklinde olan ürün agacini</DIV><DIV>&nbsp;</DIV><DIV>Mamul_Kodu&nbsp;&nbsp; Ham_kodu1&nbsp;&nbsp;&nbsp; Ham_kodu2&nbsp;&nbsp; Ham_kodu3</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D</DIV><DIV>&nbsp;</DIV><DIV>seklinde nasil sorguda getirebilirim?</DIV><DIV>çok ugrastim ama bir türlü getiremedim.</DIV><DIV>yardimlarinizi bekliyorum.</DIV><DIV>Görüsmek üzere, sevgiyle..</DIV>]]>
   </description>
   <pubDate>Tue, 21 Apr 2009 13:30:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.erpne.org/sql-sorgu_topic1560_post8709.html#8709</guid>
  </item> 
 </channel>
</rss>