Viewing 15 posts - 196 through 210 (of 1,114 total)
After including that line, it is running fine now.
Jeff,
I really learned some good things from your article. Thanks for my sql teacher.
you should continue to try to resolve this...
December 31, 2009 at 12:54 am
Mike,
Thanks for your reply.
Actually i did a small mistake in the code. Thats why it gave wrong output. Yes, I missed to include the below line.
Declare @NAV float
Declare @prev_assetid ...
December 31, 2009 at 12:48 am
Declare @NAV float
Declare @prev_assetid int
declare @prev_date datetime
SET ANSI_NULLS ON
update Returns_t
set @NAV = NAV = case when (Asset_ID = @prev_assetid) then case when datediff(month,@prev_date,Date) <> 1
...
December 30, 2009 at 8:16 am
Any inputs?
December 30, 2009 at 7:07 am
Requirement #1:
delete from Returns_t
where Date = '31/oct/2009'
and asset_id = 12
if i delete the above row then the expected output is
122009-04-30 00:00:00.0001.01222009-04-01 00:00:00.000100201.22
122009-05-31 00:00:00.0001.02132009-04-01 00:00:00.000100202.13
122009-06-30 00:00:00.0001.0312009-04-01 00:00:00.000100203.1
122009-07-31 00:00:00.0001.11032009-04-01 00:00:00.000100211.03
122009-08-31 00:00:00.0001.11132009-04-01...
December 29, 2009 at 9:41 am
since the data's are confidential , i posted some dummy data's. Actually this table has more than 200,000 records. So i just moved all the records into a temp table...
December 28, 2009 at 12:41 pm
CREATE TABLE Returns_t
(Asset_ID INT
,[Date] DATETIME NULL
,[Return] FLOAT NULL
,InceptionDate DATETIME NULL
,InitialNAV FLOAT NULL
,NAV FLOAT NULL
)
insert into Returns_t
select 112 ,'30/apr/2009', 0.0122,'30/apr/2008',100,null
union all
select 112, '31/may/2009', 0.0213,'30/apr/2008',100,null
union all
select 112 ,'30/jun/2009', 0.0310,'30/apr/2008',100,null
union all
select 112,...
December 28, 2009 at 12:33 pm
Any inputs?
December 26, 2009 at 7:40 am
I saw huge performance improvement after implementing 'quirky method'. Yes, The execution time was reduced from 45 minutes to 30 seconds( Thanks a lot to Jeff)
But i need to implement...
December 24, 2009 at 1:28 pm
Yes...i read the article...
concious decision by the design team
when this decision was taken ? and from which version this decision is being followed?
September 30, 2009 at 2:33 pm
I am just wondering becuase select 1+2+3+null gives 'NULL'. So the optimizer has some inteligence here.
But the same optimizer act like a fool when select sum(columnname) executed.
so the...
September 30, 2009 at 7:27 am
Any SQL events are running now or going to start near to NewJersey or NewYork?
September 8, 2009 at 11:16 am
Greg,
They will pass it as STRING.
July 9, 2009 at 9:32 am
Viewing 15 posts - 196 through 210 (of 1,114 total)