I am trying to learn optimization in SQL. Following queries explains my thoughts. Both of them took 19 seconds. Is there any scenario in which the...
Hi Team, I am using SQL Server 2005. I have heard that we can use a table variable to use instead of LEFT OUTER JOIN. What I understand is that, we...
Thanks for your support. I was looking for the following - HAVING (SUM(CASE WHEN TD.CompletedDt BETWEEN @FromTrainingCompletedDate AND...
Hi Thanks for the immediate reply Training(TrainingID INT, TrainingCloseDate DATETIME) TrainingDetail(TrainingDetailID INT,TrainingID INT,...
Hi, Does SQL Server 2005 support ANY or EVERY with HAVING? Suppose I have two tables Training(TrainingID, TrainingCloseDate) and...
Separate names with a comma.