14,494 questions
To make a datetime from your two integers, try this expression:
cast(concat(AppointmentDate, ' ', AppointmentTime / 100, ':', AppointmentTime % 100) as datetime)
If you need just the time:
timefromparts(AppointmentTime / 100, AppointmentTime % 100, 0, 0, 0)
Use these expressions in SELECT or UPDATE statements.