I have this query
select item_name from some_table
sometimes item_name is a ‘sometext’ value that I want to replace with item_id column.
I want a functionality similar to isnull, but insteat of null it should be a ‘sometext’.
someting like this:
select ISTEXT(item_name,'sometext',item_id) from some_table
Is this what you are looking for?