Forum Replies Created

Viewing 15 posts - 1 through 15 (of 853 total)

  • RE: seperate data in 1 row

    Hello
     need to fix data for Persan name can you please help

  • RE: seperate data in 1 row

    Thank you for your help

  • RE: seperate data in 1 row

    WHEN a.[Person Email] IS NULL AND a.[person name] IS NOT null THEN
                      (   SELECT     TOP 1 Email COLLATE DATABASE_DEFAULT
                            FROM      [dbo].[vw_PersonEmail]
                         ...
  • RE: seperate data in 1 row

    if do select top 1, I get 1st email for person correct and the rest get email of that person, I need people have their emails mapped correctly.

  • RE: seperate data in 1 row

    Thank you,it works only if I run it outside of my statement,but if I run the full code 
    Subquery returned more than 1 value. This is not permitted when the...

  • RE: seperate data in 1 row

    Thank you,it is working

     also trying to this select statement to email add this code:

    WHEN a. [Person Email]  is NULL
      THEN (SELECT Email FROM [dbo].[PersonEmail]...

  • RE: seperate data in 1 row

    This is my full code I also have cross apply here,how can I apply yours?
    SELECT       LTRIM(RTRIM(SPLIT.a.value('.', 'VARCHAR(100)'))) AS DSPN,a.DSPN AS [DSPN_old],
              a.DSPNXML,a.Region,a.Country,
        CASE
  • RE: seperate data in 1 row

    CREATE TABLE Person_oldemail ( [Person Email_old] nvarchar(100) )
    INSERT INTO Person_oldemail
    VALUES
    ( N'asfghas.opdereitem@rs.org' )
    INSERT INTO Person_oldemail
    VALUES
    ( N'augus.govoechan@rs.org' )
    INSERT INTO Person_oldemail
    VALUES
    ( N'bas.nas@rs.org
    jul.le@rs.org'...
  • RE: seperate data in 1 row

    data was posted sorry

  • RE: seperate data in 1 row

    here is sample data

  • RE: seperate data in 1 row

    Yes separate line for this particular case, I think string_split need to be used by I don' know how.
    My code:
    SELECT       
       
        CASE
  • RE: seperate data in 1 row

    I found problem in email it goes like that:'%@rs.org
    %'
    eamplee:
    ( N'ba@rs.org
    julia.leis@rs.org' )
     think split needs to be used by not sure i

    how can this...

  • RE: seperate data in 1 row

    Hello

    Thank you so much:
    so it works for this:
    "bassam.nasser@crs.org julia.leis@crs.org"
    t doesn't work for this:

    bass.nasr@rs.org julia.liii@rs.org

    Can you please help?

  • RE: seperate data in 1 row

    it is not working for me and I am asking for help

    (LEFT([Person Email],(CHARINDEX(' ',[Person Email])-1),REPLACE([Person Name] , '"', ''))

  • RE: seperate data in 1 row

    there is also there at the beginning and end  email ", after this code they were removed but how to remove on left side.

    Thank you

Viewing 15 posts - 1 through 15 (of 853 total)