SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Script Library
 Data from Table.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sureshprpt
Starting Member

India
32 Posts

Posted - 08/13/2010 :  00:42:48  Show Profile  Reply with Quote
I download the data from the table using Query. In the table one field contain the department code. I want the description related to code. But the issue is the table contain code & desciption. The code is enter with some spaces. Ex:In the first tabel code data is"MM10" and in second table code is " MM10".if i join this field the data was not equal. If any other method to join the table or can include the data when i download the query.

KIndly help me ..
Regards
Suresh

Thanks & Regards
Suresh

russell
Pyro-ma-ni-yak

USA
5072 Posts

Posted - 08/13/2010 :  10:15:23  Show Profile  Visit russell's Homepage  Reply with Quote
LTRIM(code)
Go to Top of Page

vijayisonly
Flowing Fount of Yak Knowledge

USA
1836 Posts

Posted - 08/13/2010 :  10:34:15  Show Profile  Reply with Quote
quote:
Originally posted by sureshprpt

I download the data from the table using Query. In the table one field contain the department code. I want the description related to code. But the issue is the table contain code & desciption. The code is enter with some spaces. Ex:In the first tabel code data is"MM10" and in second table code is " MM10".if i join this field the data was not equal. If any other method to join the table or can include the data when i download the query.

KIndly help me ..
Regards
Suresh

Thanks & Regards
Suresh


The script library is for posting working scripts. Going forward, if you have questions, please post them in the "New to SQL Server" or other appropriate forums.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000