I have a full_name column, and then I create a new column based on it.
however i cannot perform aggregate or other kinds of functions on this new column.
how do we bypass this?
select full_name,
case when full_name like '%b%' then 1 else 0 end as sample,
sum(sample)
from table