How to achieve the following query -
SELECT
CASE
WHEN COUNT(*) > 0 THEN
-- UPDATE operation
ELSE
-- INSERT operation
END AS [RESULT]
FROM
[TABLE_1]
WHERE
[CONDITION]
I am using SQL Server 2000. Can someone please help me?