0

I've two coloumns named Time_In and Grace_Time,which is in time format.I want to add these two columns. I've used '+' operator but it doesnt works.Im getting the error like this

Operand data type time is invalid for add operator.

How can i do it??

1 Answer 1

1

you need to cast them to datetime before add

CAST(Time_In AS DATETIME) + CAST(Grace_Time AS DATETIME)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.