Viewing 15 posts - 256 through 270 (of 304 total)
if @order_type = 'SLO'
set @mkt_rate = @lst_ask
...
October 3, 2008 at 6:22 am
These are really nice and thorough. I think I'll borrow them too 🙂
September 26, 2008 at 10:14 am
September 26, 2008 at 10:00 am
September 26, 2008 at 9:59 am
Try this:
SELECT ID
,[NAME]
,STATUS
,STUFF(
(
SELECT ''...
September 22, 2008 at 8:15 am
Mean, Variance, and Standard Deviation are built in SQL functions.
--mean
SELECT AVG(Period) AS Mean
FROM @Sample
-- standard deviation
SELECT STDEV(Period) As StandardDeviation
FROM @Sample
-- variance
SELECT VAR(Period) As Variance
FROM @Sample
September 5, 2008 at 6:55 am
I'm a bit confused. I went back and reread the original post to refresh my memory. Sure enough, the end of the week is specified as Sunday:
weekly contains...
September 4, 2008 at 11:26 am
Here's another way.
SELECT DATEADD(wk, DATEDIFF(wk, 5, a.salesdate), 5) AS EndWeek
,a.line
,sum(a.cost)
FROM #DAILY a
GROUP BY DATEADD(wk,...
September 3, 2008 at 7:25 am
Carl Federl (8/25/2008)
The best solution consists of
1....
August 26, 2008 at 7:07 am
-- works as expected on the following builds:
-- Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation ...
August 22, 2008 at 9:56 am
OK, it definitely looks like the build.
I tried my test script on a different database server with the later build and it works as expected.
Does anyone know if this bug...
August 22, 2008 at 9:05 am
Jack Corbett (8/22/2008)t to false.
Are the servers running on the same build? Are the servers running on the same OS and OS build?
Both servers are running Windows Server 2003...
August 22, 2008 at 8:33 am
DavidB (8/22/2008)
August 22, 2008 at 7:54 am
Viewing 15 posts - 256 through 270 (of 304 total)