Join problem

Join problem

 

  

I Have a join between two tables and columns are for example as follow columns in both table
has data type varchar(6) but . And there exist some records that are same in both table
but join does not return the rows. What can be possible reasons ? I have already tried rtrim , ltrim ect
Thanks,
Umsna

exp:

SELECT T.*
FROM Table_1 AS T
INNER JOIN Table_2 AS DS ON T.Col_1 = DS.Col_1


--------------------------------------------------------------------
NOTA CONFIDENZIALE:
Questo messaggio ed i suoi allegati sono indirizzati esclusivamente
alle persone indicate in testa e possono contenere informazioni
confidenziali. Se avete ricevuto il messaggio per sbaglio, sappiate
che qualunque utilizzo improprio del contenuto è proibito, Vi
preghiamo quindi di inoltrarlo immediatamente al mittente e di
cancellare il messaggio. Per qualsiasi informazione vi inivitiamo a
contattarci scrivendo a [Email Address Removed]

Grazie

CONFIDENTIALITY NOTICE:
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by replying
to [Email Address Removed] you
--------------------------------------------------------------------
MS Sql Server LazyDBA home page