I have One table like this..
IdPatientIDVisitidcreationTimeServiceAdjustTime
---------------------------------------------------------------------------------------
110112013-02-01 17:26:372013-02-07 17:26:37
210122013-02-02 17:26:372013-02-07 17:26:37
310212013-02-07 17:26:37null
410312013-02-07 17:26:37null
If I am selecting data from this one I need to get
If ServiceAdjustTime is null then in that place we will get creation time...
select id,patientid, visitid,ServiceDate from table
-----------------------------------------