Viewing 15 posts - 526 through 540 (of 1,825 total)
Try a calendar table
November 22, 2010 at 3:26 am
If there was a simple trick , then the optimizer would probably be doing it already.
Since you hands are so severely tied , there really is not much that you...
November 18, 2010 at 8:16 am
Mick Moses (11/18/2010)
But be prepared for some newby silly questions.
Welcome on board.
There is no such thing as a silly question, just bad questions.
Take a quick look at this article...
November 18, 2010 at 3:53 am
Since this has been bumped ,
a calendar table might be a good option here
November 17, 2010 at 5:32 am
What are you expecting to happen when A.empid is null , presently it will join to every row in K where Empid is null. Is that what you want...
November 17, 2010 at 4:18 am
Hi ,
i believe you may of missed the more relevant point here.
Your join condition is
On IsNull(A.empid,'') = IsNull(A.empid,'')
You are join table A back to table A , this...
November 17, 2010 at 3:19 am
It will 'end' at some point.
But consider this ,
every row in OBBEAVER.RevenueCA.dbo.Empdates will be joined to every row in IDMember.
Is this really what you want ?
I doubt it somehow.
November 17, 2010 at 2:38 am
One obvious problem is that you are not joining K to A at all , so that will be a Cartesian join
Insert Into Emp_COT Select K.ID, A.startdate, A.enddate
From OBBEAVER.RevenueCA.dbo.Empdates...
November 17, 2010 at 2:25 am
Please see this link http://www.karaszi.com/SQLServer/info_datetime.asp for all you could ever wish to know about dates in SqlServer
November 17, 2010 at 2:04 am
We've been here before havent we ?
http://www.sqlservercentral.com/Forums/FindPost986414.aspx
Sorry but im going to repeat my advice in that post....
This is tough to diagnose like this , though i feel the answer is...
November 16, 2010 at 3:49 am
Please post all DDL including table , view and index definition
November 16, 2010 at 2:09 am
Learner1 (11/15/2010)
Hi,Can I get the 10th highest salary without using TOP or RowNumber() over partition?
Since this is a stupid nonsensical restriction 😉 , heres mine
Use denali
select * from #SAL
ORDER ...
November 16, 2010 at 1:38 am
Hi , try this link
essential reading IMO : http://www.karaszi.com/SQLServer/info_datetime.asp
November 15, 2010 at 4:48 am
Be careful when comparing costs within the plan , they are ALL estimated costs. The actual costs could differ dramatically.
November 15, 2010 at 2:55 am
Viewing 15 posts - 526 through 540 (of 1,825 total)