If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Can you join columns whose data type is char

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-04, 17:01
vikrammodi vikrammodi is offline
Registered User
 
Join Date: Mar 2004
Location: chicago
Posts: 3
Angry Can you join columns whose data type is char

I have two tables :

T1:
program_code | Program_name
abc | abcdef
Tin | Tin Tin


T2:
Program_Code | Program_Name | Type
tin | Tin Tin | good
BB | Big Bang | poor


I am trying to join the tables so as to the get program_code and Name from T1 which are present in T2 . Here is my query :
select T1.Program_code, T1.Program_name from T1 join T2 on
T1.Program_code = T2.Program code

This query should yeild me : Tin | Tin Tin
But unfortunately it doesnt. So my question is, can we join colums whose data type is char ?
My DB is SQL SERVER 2000
Would appreciate a quick response.

TIA

-- Vikram

Last edited by vikrammodi; 03-22-04 at 17:05.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On