I have the following query
select (case
when object like'%service%' then (object)
when class like '%service%' then (class)end) From db group by (case when object like '%service%' then object
when object_class like '%service%' then object_class end)
this query check if value of each column contains 'service' than display the data, i need instead of data only display, data and string
Some thing like when object like'%service%' then (object),'string'
String will be a variable which is stored in unknown column at results
- column1 column2
- objet1 mystring
- objet2 mystring
- objet3 mystring