Viewing 15 posts - 1 through 15 (of 23 total)
There is only One row
Discontinueddate
with dates from 01/01/1983 - 01/01/2099
From this I can get Which quarter 1-4 there are in
and create and populate a quarter field
I am trying to...
October 12, 2005 at 9:39 am
I need to take one date and break it down into quarter with years so I can do a two year look ahead. 8 quarter vs the 4 I am doing...
October 11, 2005 at 8:43 am
Sure. It's at 0 here but I change it to -6 or six months before the discontinueddate as of today. All software expiring withing six months is flagged and a...
October 6, 2005 at 12:36 pm
Your are correct. I should be more specific and I appreciate you pointing that out. Here is what I did to possibly fix it.
NEW
SELECT CATEGORY, TYPE, VENDOR, VENDORID, PRODUCT, DISCONTINUEDDATE,...
October 6, 2005 at 10:17 am
Since in my particular job I cannot "JUST" send the data, I have to make sure there is nothing referenced to the company I work for. Big no no. So I...
October 6, 2005 at 9:28 am
INSERT INTO [youdatabase].[dbo].[EOL]([ID], [TYPE], [CATEGORY], [PRODUCTID], [PRODUCT], [VENDORID], [VENDOR], [VERSIONID], [VERSION], [DESCRIPTION], [PLATFORM], [GLOBALRECOMMENDATION], [LOCALRECOMMENDATION], [SUPPORTED], [SUPPORTGROUP], [ESTIMATEDCOST], [LICENSESCHEME], [OBTAINCHANNEL], [BUDGETCODE], [PRODUCTPUBLISH], [VERSIONPUBLISH], [DISCONTINUEDDATE], [Sunset], [GTPM], [COMPOUND], [CREATEDDATE], [REQUESTSTATUS], [PRODUCTLASTUPDATEDATE],...
October 5, 2005 at 3:41 pm
CREATE TABLE [EOL] (
[ID] [int] NOT NULL ,
[TYPE] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[CATEGORY] [nvarchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[PRODUCTID] [varchar] (53) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[PRODUCT] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS...
October 5, 2005 at 3:07 pm
ORDER BY CONVERT (DATETIME, DISCONTINUEDDATE) still mixs up the dates
all of the date fields are datetime 8
I rechecked all of the fields and I do not have anything other than ...
October 5, 2005 at 12:46 pm
SELECT Type, Vendor, discontinueddate, DATEPART( YEAR, discontinueddate) AS 'Quarter Year',datepart(quarter,[discontinueddate]) AS 'Quarter'
FROM EOL
WHERE DISCONTINUEDDATE > DateAdd(M,-0,GETDATE())
Order by Discontinueddate
Seems to work ok here.
September 23, 2005 at 12:32 pm
Yes I was asking the same thing. I though I should start a new thread since it was somthing different.
I appologize if it offended someone.
August 29, 2005 at 3:44 pm
I thought the same thing but it shows the correct date and time. It's my local PC<G>
Still getting a startdate of 2003 -24 and nothing on 24 or +24
The filed...
August 29, 2005 at 2:09 pm
For some reason that makes it go from 2003 - 2009
I need current day plus 24 months so I can show 8 quarters of info at a time.
Thanks for the...
August 29, 2005 at 1:50 pm
what if I need the quarters always 24 months from today everyday?
I tried using the DateAdd("m",24,Now());
But no luck
Hints??
August 29, 2005 at 12:49 pm
SELECT TYPE,vendor,discontinueddate, datepart(quarter,[discontinueddate]) AS 'Quarter'
from EOL
WHERE (DISCONTINUEDDATE >= '01/01/2005')
Order by Discontinueddate
Works!!!
August 29, 2005 at 10:22 am
Viewing 15 posts - 1 through 15 (of 23 total)