Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 18,858 of 19,505    |
|    bradbury9 to All    |
|    Re: SQL Date expressions    |
|    17 Apr 13 07:50:08    |
      From: ray.bradbury9@gmail.com              El miércoles, 17 de abril de 2013 16:17:20 UTC+2, contracer escribió:       > Hi,        >        >        >        > How could I create these sql expressions ?       >        >        >        > last 7 days       >        > last 30 days       >        > last month       >        > last week       >        > this year       >        > last year       >        >        >        > Thanks              Using TSQL date functions, here is a list:              http://msdn.microsoft.com/en-us/library/ms186724.aspx              Most usual functions are GetDate(), DatePart() and DateAdd()              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca