<?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>Πρώτα Βήματα - Βάσεις δεδομένων</title><link>https://www.dotnetzone.gr:443/cs/forums/73/ShowForum.aspx</link><description>Για όσους κάνουν τα πρώτα τους βήματα στην Microsoft Access ή τον SQL Server, ή γενικότερα στη θεωρία βάσεων δεδομένων.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20812.aspx</link><pubDate>Tue, 21 Nov 2006 19:31:42 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20812</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20812.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20812</wfw:commentRss><description>Σωστά. Ευχαριστώ για τις άμεσες απάντησεις σας στο ερωτημά μου.</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20806.aspx</link><pubDate>Tue, 21 Nov 2006 18:50:51 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20806</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20806.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20806</wfw:commentRss><description>&lt;P&gt;Μάθαμε και κάτι πιο "επιστημονικό"...&lt;/P&gt;</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20796.aspx</link><pubDate>Tue, 21 Nov 2006 17:58:41 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20796</guid><dc:creator>ChemicalChip</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20796.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20796</wfw:commentRss><description>Επίσης μπορείς να κάνεις αυτό:&lt;br /&gt;
&lt;br /&gt;
cast(convert(varchar, getDate(),111) as datetime)&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20792.aspx</link><pubDate>Tue, 21 Nov 2006 17:18:41 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20792</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20792.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20792</wfw:commentRss><description>Καλημέρα σε όλους!&lt;br /&gt;
&lt;br /&gt;
 Παιδιά μου έπαιξε το getdate(). Αυτο που είπε ο Δημήτρης (dimkasta). Δηλαδή είναι 20/11/2006 και ώρα 18:00. Ε θέλω όλες τις εγγραφές από τις 20/11/2006 00:00:00 μέχρι τις 20/11/2006 18:00. Αλλά αυτά φυσικά να μην τα βάζω με το χέρι. &lt;br /&gt;
&lt;br /&gt;
  Πάντως μου έπαιξε μια χαρά και μάλιστα σε πολλές περιπτώσεις datetime που δοκίμασα.</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20769.aspx</link><pubDate>Tue, 21 Nov 2006 01:20:26 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20769</guid><dc:creator>agmarios</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20769.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20769</wfw:commentRss><description>&lt;P&gt;έστω ότι το getdate() επιστρέφει 20/11/2006 18:17:00&lt;/P&gt;
&lt;P&gt;τότε έχουμε:&lt;/P&gt;
&lt;P&gt;Getdate() -1 = 19/11/2006 18:17:00&lt;BR&gt;getdate() +1 = 21/11/2006 18:17:00&lt;/P&gt;
&lt;P&gt;άρα 2 μέρες διαφορά.&lt;/P&gt;
&lt;P&gt;για το νέο&amp;nbsp;statement&amp;nbsp;συμφωνώ επιλέγει τα σημερινά&amp;nbsp;&lt;/P&gt;
&lt;P&gt;υ.γ. Δεν είχα δει το post του Kelman. &lt;/P&gt;</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20768.aspx</link><pubDate>Tue, 21 Nov 2006 01:19:17 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20768</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20768.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20768</wfw:commentRss><description>'Η ακόμα καλύτερα:&lt;br /&gt;
&lt;br /&gt;
WHERE DATEDIFF(d,yourdate, GETDATE()) = 0 &lt;br /&gt;
&lt;br /&gt;
Mε μια μικρή μετατροπή, μπορεί να δείξει και τις τελευταίες 24 ώρες.&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20766.aspx</link><pubDate>Tue, 21 Nov 2006 01:11:46 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20766</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20766.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20766</wfw:commentRss><description>1 μέρα επιστρέφει ρε συ...&lt;br /&gt;
&lt;br /&gt;
Πιο ακριβές μην τυχόν...&lt;br /&gt;
&lt;br /&gt;
where &lt;br /&gt;
&lt;br /&gt;
datepart(day, yourdate) = datepart(day, GETDATE()) AND&lt;br /&gt;
&lt;br /&gt;
datepart(month, yourdate) = datepart(month, GETDATE()) AND&lt;br /&gt;
&lt;br /&gt;
datepart(year, yourdate) = datepart(year, GETDATE())</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20765.aspx</link><pubDate>Tue, 21 Nov 2006 00:56:31 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20765</guid><dc:creator>agmarios</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20765.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20765</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;dimkasta 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 valign="top" class="txt4"&gt;where (yourdate &amp;gt; GETDATE() - 1) AND (yourdate &amp;lt; GETDATE + 1)&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;αυτό το expression διαβάζει γραμμές 2 ημερών.&lt;/P&gt;
&lt;P&gt;Επίσης πρέπει να ξεκαθαρίσουμε αν μιλάμε για τελευταία ημέρα ή για τελευταίες 24 ώρες. Ακόμη έχει ενδιαφέρον αν πρόκειται για κάποιο log&amp;nbsp;table όπου δεν υπάρχουν μεταγεννέστερα δεδομένα ή όχι (η τελευταία ημέρα αντί για σήμερα εμένα με παραπέμπει σε log ) οπότε αρκεί μια σύγκριση.&lt;/P&gt;</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20764.aspx</link><pubDate>Tue, 21 Nov 2006 00:53:53 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20764</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20764.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20764</wfw:commentRss><description>ok.Ευχαριστώ πολύ.</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20762.aspx</link><pubDate>Tue, 21 Nov 2006 00:44:14 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20762</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20762.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20762</wfw:commentRss><description>where (yourdate &gt; GETDATE() - 1) AND (yourdate &lt; GETDATE + 1)</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20761.aspx</link><pubDate>Tue, 21 Nov 2006 00:42:46 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20761</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20761.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20761</wfw:commentRss><description>Δεν παίζει...Το datetime ειναι της μορφής 20/11/2006 4:22:02 μμ.</description></item><item><title>Απ: Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20760.aspx</link><pubDate>Tue, 21 Nov 2006 00:34:59 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20760</guid><dc:creator>dimkasta</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20760.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20760</wfw:commentRss><description>where yourdate = GETDATE()</description></item><item><title>Select εγγραφων της ημέρας...</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/20759.aspx</link><pubDate>Tue, 21 Nov 2006 00:31:21 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:20759</guid><dc:creator>jimenez</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/20759.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=73&amp;PostID=20759</wfw:commentRss><description>&amp;nbsp;&amp;nbsp;&amp;nbsp; Θέλω να διαβάζω απο πίνακα της ημέρας δεδομένα. Έχω πεδίο datetime.Στο where τι βάζω?&lt;br&gt;</description></item></channel></rss>