I think I need some guidance as to what is wrong in my query. I am trying to do
Watched_Gladiator=CASE WHEN FilmName IN (CASE WHEN FilmName LIKE \'%Gladiator%\'
Try grouping up to the cust/film level:
select cust_nbr, case when film_name like '%Gladiator%' then 1 else 0 end from ( select cust_nbr, film_name from group by cust_nbr, film_name ) t
Or, as an alternative:
select distinct cust_nbr from where filmname = 'Gladiator'