Results 1 to 2 of 2
  1. #1
    Join Date
    May 2008
    Posts
    3

    Unanswered: Comparing data of Text columns

    Hello everyone,
    I'm comparing data of 2 columns in 2 tables from 2 databases. The columns have the same DDL and they ara Text type.
    The request I'm using is
    Code:
    select t1.SPADM_SP_CODE_FK_PK, t1.SPADM_LIBELLE, t2.SPADM_SP_CODE_FK_PK,t2.SPADM_LIBELLE
    from THERIAQUE_DEST.theriaque.SPADM_SPECIALITE_MODEADM  t1
    inner join THERIAQUE_MAJ.theriaque.SPADM_SPECIALITE_MODEADM  t2 on t1.SPADM_SP_CODE_FK_PK = t2.SPADM_SP_CODE_FK_PK
    where cast(t1.SPADM_LIBELLE as varchar(max)) <> cast(t2.SPADM_LIBELLE as varchar(max))
    Normally I must have a difference because the first column contains (350 mg/mē) and the second column contains (350 mg/m2) but nothing is returned.
    Can anyone tell me what I must to do resolve this problem

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,469
    Provided Answers: 10
    How is that 2 stored
    hope this help

    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
    DONT WORRY ABOUT THOSE WHO TALK BEHIND YOUR BACK
    THEY'RE BEHIND YOU FOR A REASON

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •