Viewing 15 posts - 1 through 15 (of 28 total)
Looks like I made the some part of it work.
This SQL will drop the unwanted records and now I have to somehow add the new end dates.
delete A
...
June 12, 2013 at 2:14 pm
Will this work on SQLSERVER 2000?
April 13, 2012 at 9:33 am
This is a one time thing and I have to finish today.. so after some thought process.. this what I have come up with....
alter table mult_vals add cnt smallint
--This tells...
July 28, 2011 at 8:38 am
I am on SS2000.... Any solution that will work here.
Thanks
July 28, 2011 at 5:59 am
Alright - thanks. Will try that.
February 23, 2011 at 10:29 am
Thanks - I understand this solution... Actually my bad - I simplified the situation.
In the real table - the columns are not really bit columns - those are various kinds...
February 23, 2011 at 10:22 am
Here is a query that I need to run every day for some reports and this is taking over 2 hours. Can someone help me optimize this one.
copied below is...
November 11, 2009 at 3:40 pm
I did try the solution given above (with clustered index) but somehow it was not working for me.
I am not on my machine right now and do not have exactly...
September 17, 2009 at 8:10 pm
Thanks to both of you - It turned out that the table also was not an exact copy which was the main cause for the gap.
I will fix the query...
September 1, 2009 at 6:28 am
Thanks - I understand the approach.
Hope it will make it better as far as the run time is concerned.
March 31, 2009 at 10:43 am
That was not correct example
2009-01-01 05:38:00 Table 1
2009-01-01 05:36:00 Table 2
2009-01-01 05:37:00 Tbl2
2009-01-01 05:38:00 Tbl2
The Tbl1 timestamp is...
March 30, 2009 at 9:48 am
Thanks for the solution.
But I gave a simpified answer to the question earlier. The actual requirement is this
From all the records that are within 2 minutes
Try and pick the...
March 30, 2009 at 9:24 am
That is very correct.
The aim here is to find the record from second table which is equal or upto 2 minutes after the timestamp on first table.
If I get one...
March 26, 2009 at 1:03 pm
Distinct probably can be removed
It is 2 minutes (120 seconds)
20 was a typo.
March 26, 2009 at 12:24 pm
Viewing 15 posts - 1 through 15 (of 28 total)