• See if something like this will get you started. Please notice how I posted ddl and sample data in a consumable format.

    if OBJECT_ID('tempdb..#Something') is not null

    drop table #Something

    create table #Something

    (

    Ticket int,

    contacts varchar(100)

    )

    insert #Something

    select 4368642, 'Customer Support, Customer45@hotmail.com' union all

    select 4368640, 's_prod_i3admin, s_prod_i3admin, Customer12@yahoo.com' union all

    select 4368023, '1234Customer@msn.com'

    select *

    from #Something s

    cross apply dbo.DelimitedSplit8K(s.contacts, ',') x

    where CHARINDEX('@', x.Item) > 0

    You can find the code for the DelimitedSplit8K function by following the link in my signature about splitting strings.

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/