Viewing 15 posts - 106 through 120 (of 462 total)
Not sure how you can include this in your query (if you can provide the test data and table create script, may be someone will help with the complete query)...
December 22, 2009 at 2:59 am
purushotham.k9 (12/22/2009)
What is 'p' and 'Number' here in this code
Thats a table in master database and it has numbers from 0 to 2047.
That is a simulation of 'number' table. To...
December 22, 2009 at 2:37 am
Jeff Moden (12/22/2009)
SELECT DATEADD(dd,DATEDIFF(dd,6,GETDATE()+1)/7*7,-9)+t.Number
FROM Master.dbo.spt_Values t
WHERE t.Type =...
December 22, 2009 at 2:36 am
Jeff Moden (12/21/2009)
Nabha (12/21/2009)
All good answers above,one more way to find your last friday, (and then deduce your other days)
Select dateadd(day, - (datepart(dw, getdate())+1), getdate())
It doesn't appear to work...
December 22, 2009 at 1:13 am
Is there any other to remove the time part?
Select dateadd(day, 0, datediff(day, 0, getdate()))
December 21, 2009 at 6:33 am
All good answers above,
one more way to find your last friday, (and then deduce your other days)
Select dateadd(day, - (datepart(dw, getdate())+1), getdate())
December 21, 2009 at 6:26 am
Biz (12/20/2009)
Group,Item,startdate,ID
I need to add a serial number for item if there are more than one item in the group and the serial number...
December 21, 2009 at 12:13 am
Sorry if I am underestimating your requirement, but 'UNION' will combine the result sets and all your 7 select query will act as one single select query. This combined result...
December 19, 2009 at 12:22 am
One of the reasons could be that the instance is hidden?
Configuration manager -> SS2K5 Network config ->Protocols for <<instance>> -> properties -> Hide instance?
December 19, 2009 at 12:16 am
Sorry if I've misunderstood ur requirement, but is this what you need?
(this is what I could think of using STUFF, there could be better ways!)
declare @des varchar(80)
select @des =...
December 18, 2009 at 12:24 am
Sorry, this should also do (its implicit, my bad!)
Declare @date datetime
SET @date = dateadd(mi, 5,getdate())
SELECT (DATEDIFF(SS, getdate(), @date)/86400.00) * 100
December 17, 2009 at 9:00 am
A simple test and you would get the answer 🙂
Return type of a datediff is integer and you will get 0 i think. So may be this will help you?...
December 17, 2009 at 7:24 am
Lynn's post says it all but in case if it makes easier for you, question would be
'how do you know that records are not in the order?'
December 15, 2009 at 8:12 am
SELECT DISTINCT IPC.PER_NR,
ISNULL(CHCM.OUTGOING_DATA,IPC.LOA_LEVEL) AS 'Managerlevel'
FROM
INBOUND_PLM_CHCM IPC
LEFT OUTER JOIN CHCM_TO_PSOFT_MAPPING CHCM
ON IPC.LOA_LEVEL=CHCM.INCOMING_DATA AND...
December 15, 2009 at 8:09 am
Viewing 15 posts - 106 through 120 (of 462 total)