updates HumanResources.Employee table ‘column SickLeave Hours’
I need to do the following logic:
if Hours greater than or equal to 35 set to 40
if less than 35 set it to 0.
How to break the loop?
How can I achieve this in SQL Server? Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure what your exact column name is but maybe you want something like: