Hi guys, I am new here. I need to put the below if else condition in select statement, is it possible?
if task_is_trunk = 1
(select branch_name from dbo.tblBranch where task_location_g uid = dbo.tblBranch.b ranch_guid) as location_name
else
(select location_id from dbo.tblCSLocati on where location_guid = dbo.tblCSTask.t ask_location_gu id) as location_name
Thanks!
if task_is_trunk = 1
(select branch_name from dbo.tblBranch where task_location_g uid = dbo.tblBranch.b ranch_guid) as location_name
else
(select location_id from dbo.tblCSLocati on where location_guid = dbo.tblCSTask.t ask_location_gu id) as location_name
Thanks!
Comment