VonFranzken
MIS
How can I give a name to the column where this statement displays its results?
SELECT *,
case srctable_cah
when 'dbo.activity' then 'Activities at 689'
when 'dbo.goal' then 'Goals'
when 'dbo.technician' then 'Technicians Report'
when 'dbo.marketintell' then 'Market Intelligence'
when 'dbo.activityout' then 'Activities Outside 689'
when 'dbo.targetartist' then 'Target Artist Update'
else '...'
end
FROM admin.src_cache_cah
SELECT *,
case srctable_cah
when 'dbo.activity' then 'Activities at 689'
when 'dbo.goal' then 'Goals'
when 'dbo.technician' then 'Technicians Report'
when 'dbo.marketintell' then 'Market Intelligence'
when 'dbo.activityout' then 'Activities Outside 689'
when 'dbo.targetartist' then 'Target Artist Update'
else '...'
end
FROM admin.src_cache_cah