SELECT policyid
FROM table t
unpivot (Age FOR traveller IN ([t1],[t2],[t3],[t4],[t5],[t6],[t7]))u
group by policyid
having sum(case when Age > 18 then 1 else 0 end) = 1
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/