timscronin
MIS
I have a select statement which needs to apply some logic to determine which fields to use. If the modify_timestamp = create_timestamp, then I want to use a location field from patient_medication table. If the modify_timestamp and create_timestamp are not equal, I need to use the location field from a location table. So my select would be
select account_id,ndc,startdate -- and then my logic. Am I correct that you can't use a case for this?
select account_id,ndc,startdate -- and then my logic. Am I correct that you can't use a case for this?