Re: Dates Result Set
From: Steve Kass (skass_at_drew.edu)
Date: 04/21/04
- Previous message: Hugo Kornelis: "Re: Help with Query"
- In reply to: tom sawyer: "Dates Result Set"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 18:36:50 -0400
Here is one solution:
select cast(convert(char(8),getdate(),112) as datetime) + i as d
from (
select 0 as i union all select 1 union all select 2 union all select 3
union all select 4 union all select 5 union all select 6
) T
Steve Kass
Drew University
tom sawyer wrote:
>Hi, All,
>
>I need a single result set that just returns today's date
>plus 6 more days. I want to do this without a cursor.
>Any ideas?
>
>Thanks!
>T
>
>
- Previous message: Hugo Kornelis: "Re: Help with Query"
- In reply to: tom sawyer: "Dates Result Set"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
- Re: calculate the midle and end of the month
... declare @m datetime ... Steve Kass ... Drew University
... Gonzalo Torres wrote: ... (microsoft.public.sqlserver.programming) - Re: From clause with parenthese - Posted once but server error
... Steve Kass ... Drew University ... Kalvin wrote: ...
>documentation on this, but am working on a procedure written by ... (microsoft.public.sqlserver.programming) - Re: just a silly thing maybe...
... plan and that has nothing to do with the countaggregate. ... Steve
Kass ... Drew University ... (microsoft.public.sqlserver.programming) - Re: RTRIM function doesnt work
... replace it, as suggested, with CHAR, the "regular" space. ... Scott wrote:
... >>Steve Kass ... >>Drew University ... (microsoft.public.sqlserver.programming) - Re: GetDate as Parameter for UDF Function returns table
... Functions, expressions, and column references cannot ... Steve Kass ...
Drew University ... Liam Ponder wrote: ... (microsoft.public.sqlserver.server)