I need help with script writing for SQL Server 2008.
I have 2 tables, Character
and MEMB_INFO
, and I want to run this code automatically, as a SQL Server Agent job:
SELECT MasterResetCount
FROM character
WHERE MasterResetCount = 3 OR = 5 OR 7
And in the same code add something like "IF"
That will do the test and only if MasterResetCount = 3 or = 5 or 7 And if 3,5,7 exist in MasterResetCount
Update:
update MEMB_INFO
set AccountLevel = 1
I'd love to get help
I really don't understand writing queries.
Thank you!