<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server (και άλλες databases)</title><link>https://www.dotnetzone.gr:443/cs/forums/28/ShowForum.aspx</link><description>Θέματα που αφορούν τον SQL Server (7.0, 2000, 2005) αλλά και Oracle, Access, DB2, MySQL, κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Συμβουλη για INNER JOIN</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/34267.aspx</link><pubDate>Sat, 11 Aug 2007 05:46:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:34267</guid><dc:creator>Thiseas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/34267.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=34267</wfw:commentRss><description>&lt;PRE&gt;&lt;STRONG&gt;select entry.[item no_], Quantity &lt;BR&gt;from entry &lt;BR&gt;inner join item on (entry.item no_ = item.no_) &lt;BR&gt;inner join status on (status.[pos terminal] = entry.[pos terminal] and status.[transaction] = entry.[transaction]) &lt;BR&gt;where status.[status] ='undecided' &lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;ή (με τον παλιό τρόπο): &lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;select entry.[item no_], Quantity &lt;BR&gt;from entry, item, status&lt;BR&gt;where &lt;BR&gt;(entry.item no_ = item.no_) and &lt;BR&gt;(status.[pos terminal] = entry.[pos terminal] and status.[transaction] = entry.[transaction]) and &lt;BR&gt;(status.[status] ='undecided')&lt;/STRONG&gt;&lt;/PRE&gt;</description></item><item><title>Απ: Συμβουλη για INNER JOIN</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/34067.aspx</link><pubDate>Fri, 03 Aug 2007 20:47:50 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:34067</guid><dc:creator>lskostas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/34067.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=34067</wfw:commentRss><description>&lt;P&gt;ειναι transaction status το ονομα του πεδιου στο where...&lt;/P&gt;
&lt;P&gt;δικη μου παραληψις...θα δοκιμασω το join θα επανελθω!!!Thanks &lt;/P&gt;</description></item><item><title>Απ: Συμβουλη για INNER JOIN</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/34063.aspx</link><pubDate>Fri, 03 Aug 2007 20:17:08 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:34063</guid><dc:creator>agmarios</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/34063.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=34063</wfw:commentRss><description>&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;select&lt;/span&gt; en.[item no_], Quantity&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;from&lt;/span&gt; ((entry &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;as&lt;/span&gt; en &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;inner&lt;/span&gt; &lt;span style="color:Silver;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;join&lt;/span&gt; item &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;as&lt;/span&gt; it &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;on&lt;/span&gt; en.[item no_] = it.[no_])&lt;br&gt;     &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;inner&lt;/span&gt; &lt;span style="color:Silver;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;join&lt;/span&gt; status &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;as&lt;/span&gt; st &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;on&lt;/span&gt; (en.[pos terminal] = st.[pos terminal] &lt;span style="color:Silver;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;and&lt;/span&gt; em.[&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;transaction&lt;/span&gt;] = st.[&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;transaction&lt;/span&gt;]))&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;where&lt;/span&gt; st.[status] =&lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;'undecided'&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;Η ονομασία του πεδίου "transaction" δεν σε μπερδεύει;&lt;br&gt;</description></item><item><title>Συμβουλη για INNER JOIN</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/34061.aspx</link><pubDate>Fri, 03 Aug 2007 18:45:51 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:34061</guid><dc:creator>lskostas</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/34061.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=34061</wfw:commentRss><description>&lt;P&gt;Εχω τρεις πινακες ENTRY,ITEM,STATUS&lt;/P&gt;
&lt;P&gt;O ENTRY εχει&amp;nbsp;2 κοινα columns με τον STATUS [pos terminal],[transaction] και ενα κοινο με το&amp;nbsp;ΙΤΕΜ&amp;nbsp;[Νο]&lt;/P&gt;
&lt;P&gt;SELECT&amp;nbsp; c.[item no_],&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Quantity&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;FROM [Entry] c &lt;/P&gt;
&lt;P&gt;INNER JOIN [Item] d &lt;/P&gt;
&lt;P&gt;ON c.[ITEM NO_]=d.[NO_]&lt;/P&gt;
&lt;P&gt;Πρεπει να συνδεσω στο παραπανω join&amp;nbsp;Κ-Α-Ι τον π-ι-ν-α-κ-α STATUS στα πεδία [POS TERMINAL]&amp;nbsp;και&amp;nbsp;[TRANSACTION]&amp;nbsp;(τα οποια ειναι κοινα columns με τον πινακα ENTRY) και να προσθεσω στο τελος του query where status='undecided'(το οποιο ειναι πεδιο οπως καταλαβαινεται ειναι column του πινακα STATUS)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ευχαριστω για τυχον απαντησεις,και...Καλες Διακοπες&amp;nbsp;και καλη ξεκουραση σε ολους σας&amp;nbsp;&lt;img src="http://www.dotnetzone.gr/cs/emoticons/emotion-11.gif" alt="Cool" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>