SELECT param1, param2, param3 FROM table WHERE status=@status;
UPDATE table SET count+=1 WHERE param1=@param1 and param2=@param2 and param3=@param3 and status=0;
DELETE FROM table WHERE param1=@param1 and param2=@param2 and param3=@param3 and status=@status;
UPDATE table SET count+=1 WHERE ( param1, param2, param3 ) IN( SELECT param1, param2, param3 FROM table WHERE status=@status ) and status=0;
DELETE FROM table WHERE ( param1, param2, param3 ) IN( SELECT param1, param2, param3 FROM table WHERE status=@status ) and status=@status;