Viewing 15 posts - 10,666 through 10,680 (of 18,923 total)
Have you considered the option to simply ignore the dates that were older than X months app side? Since you were already doing some recoding either way would have been...
December 8, 2006 at 9:02 am
Something like this should do it :
SELECT RIGHT(ActivityNo + SPACE(9), 10) + '|' + Designation FROM
(SELECT CONVERT(VARCHAR(10), ActivityNo), RTRIM(LTRIM(Designation)) FROM tableX GROUP BY ActivityNo, RTRIM(LTRIM(Designation))) dtA
December 8, 2006 at 8:46 am
The scans go FROM 2 to 10 which is expected but the IO barely go up. Very nice to see that
.
December 8, 2006 at 8:38 am
I see your point... but I think there's a limit to bulletproofing the code
.
use master
go
select top 100000 rand(checksum(newid()))
...
The only editing...
December 8, 2006 at 8:08 am
On sql server 2000 (with a few user objects ± 10)) :
SELECT COUNT(*) FROM master.dbo.SysComments
2268
So 100K with 3 cross joins is really not a problem
.
December 8, 2006 at 7:54 am
Assuming you can't live without the index, you'll have to wait while it creates itself. Maybe you can wait to create it off hours when the server is less busy. ...
December 8, 2006 at 7:16 am
Does this do the trick :
SELECT ID, Name, XType FROM dbo.SysObjects WHERE ID = @SomeParam ORDER BY Xtype, Name
December 7, 2006 at 8:21 am
Ya and if you have 522 rows with that information, you might consider making it a lookup table!!!
December 7, 2006 at 8:17 am
Points still to be talked about.
Why allow all those nulls.
Why iatr the quantity and price fields not declared as decimal.
Where is the unique constraint.
December 7, 2006 at 8:00 am
Or by telling it just like this on the boards. Thanx ez, that'll help someone else someday.
December 7, 2006 at 7:53 am
Is the job still opened?
December 7, 2006 at 1:21 am
There's not right answer here... they but work
.
December 5, 2006 at 2:35 pm
I'm simply redirecting everyone to a single thread. That way there will be only 1 active discussion.
Also users finding this thread using a search engine will have access to the...
December 5, 2006 at 2:33 pm
SELECT
a.PolicyNumber,
a.TableCode,
a.SeriesCode,
a.LossDate,
a.EffectiveDate,
SUM(b.WaiverofPremium) AS SumPremium
FROM tableA a
INNER JOIN tableB b
ON a.PolicyNumber = b.PolicyNumber AND a.TableCode = b.TableCode AND a.SeriesCode = b.SeriesCode
WHERE DATEADD(yyyy, 10,...
December 5, 2006 at 2:25 pm
Viewing 15 posts - 10,666 through 10,680 (of 18,923 total)