Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 hi

Author  Topic 

sadbjp
INNER JOIN

41 Posts

Posted - 2007-05-15 : 10:36:13
Hi,


I tried coding the following step:

Set the values of GoalMet comparing the LocalPerf value and SppTarget.Target value with the CompareMethod. If CompareMethod = 1, then LocalPerf >= Target means GoalMet = 1; othwerwise, LocalPerf <= Target means GoalMet = 1.

This is what I have, got error as Incorrect syntax near "=". Can anyone help me with this? Thanks
F (CompareMethod = 1) AND (LocalPerf >= Target)
BEGIN
SET GoalMet = 1
END
ELSE
IF (LocalPerf <= Target)

SET GoalMet = 1

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2007-05-15 : 10:42:25
You only need to post your questions once.

see: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=83599

- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page
   

- Advertisement -