<?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>Απ:LAST And FIRST functions</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/3814.aspx</link><pubDate>Mon, 25 Jul 2005 23:18:49 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:3814</guid><dc:creator>George J. Capnias</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/3814.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=3814</wfw:commentRss><description>&lt;P&gt;&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/cs/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;pkanavos wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td width="100%" valign="top" class="txt4"&gt;...&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;Φτου με πρόλαβες γιατί χρωμάτιζα το SQL... &lt;img src="/cs/emoticons/emotion-1.gif" alt="Smile [:)]" /&gt;&lt;/P&gt;
&lt;P&gt;George J.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ:LAST And FIRST functions</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/3813.aspx</link><pubDate>Mon, 25 Jul 2005 23:16:29 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:3813</guid><dc:creator>George J. Capnias</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/3813.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=3813</wfw:commentRss><description>&lt;P&gt;Δηλαδή ψάχνεις κάτι του στυλ&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#0000ff&gt;SELECT TOP&lt;/FONT&gt; 1 [ό,τι]&lt;BR&gt;&lt;FONT color=#0000ff&gt;FROM&lt;/FONT&gt; [ό,τι]&lt;BR&gt;&lt;FONT color=#0000ff&gt;WHERE&lt;/FONT&gt; [ό,τι]&lt;BR&gt;&lt;FONT color=#0000ff&gt;ORDER BY&lt;/FONT&gt; [ό,τι] &lt;FONT color=#0000ff&gt;ASC&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;και το αντίστροφο&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#0000ff&gt;SELECT TOP&lt;/FONT&gt; 1 [ό,τι]&lt;BR&gt;&lt;FONT color=#0000ff&gt;FROM&lt;/FONT&gt; [ό,τι]&lt;BR&gt;&lt;FONT color=#0000ff&gt;WHERE&lt;/FONT&gt; [ό,τι]&lt;BR&gt;&lt;FONT color=#0000ff&gt;ORDER BY&lt;/FONT&gt; [ό,τι] &lt;FONT color=#0000ff&gt;DESC&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;George J.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ:LAST And FIRST functions</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/3812.aspx</link><pubDate>Mon, 25 Jul 2005 23:15:08 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:3812</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/3812.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=3812</wfw:commentRss><description>&lt;P&gt;Γιατί αυτά δεν είναι relational functions και υλοποιούνται πάντοτε με κόλπα, συνήθως cursors. Στις σχεσιακές βάσεις δεν υπάρχει η έννοια της σειράς, εκτός κι αν την ορίσεις εσύ με ένα order by. Το ίδιο αποτέλεσμα μπορείς να πετύχεις με ένα query του στυλ &lt;/P&gt;
&lt;P&gt;... where CustomerID=(SELECT TOP 1 ID From Customers Order By ApprovalDate Desc) για το last ή &lt;/P&gt;
&lt;P&gt;... where CustomerID=(SELECT TOP 1 ID From Customers Order By ApprovalDate Asc) για το first&lt;/P&gt;
&lt;P&gt;υποθέτωντας ότι η σειρά που θέλεις είναι βάση του ApprovalDate.&lt;/P&gt;</description></item><item><title>LAST And FIRST functions</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/3800.aspx</link><pubDate>Mon, 25 Jul 2005 22:29:22 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:3800</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/3800.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=3800</wfw:commentRss><description>&lt;P&gt;Γεια σας ανύσηχοι από την όμορφη Κρήτη !!!!&lt;BR&gt;Ξέρετε&amp;nbsp;κάποια αντίστοιχα functions με αυτά του &lt;BR&gt;τίτλου στον SQL Server που μπορώ να χρησιμοποιήσω;&lt;/P&gt;
&lt;P&gt;Αλήθεια γιατί δεν υποστηρίζονται ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>