Problem in Join stage
Posted: Mon Jun 24, 2013 9:01 am
Hi,
I am not able to use the join stage properly and getting wrong result.
I have two tables : Table A and Table B
Table A has following columns:
Country varchar (50), Country_code varchar(10)
Table B has :
Country_code varchar(10), Car_name varchar(10)
Table A records:
Country_code Country
------------------------------------
IN Pakistan
Table B records:
Country_code Car_name
-------------------------------------
IN Verna
IN BMW
PK Audi
When I try to do inner join output returns as 0 records (key column is country_code).
But when I use integer in place of varchar as data type of contry code, job works fine.
Please provide the solution that where I am committing the mistake.
Thanks,
I am not able to use the join stage properly and getting wrong result.
I have two tables : Table A and Table B
Table A has following columns:
Country varchar (50), Country_code varchar(10)
Table B has :
Country_code varchar(10), Car_name varchar(10)
Table A records:
Country_code Country
------------------------------------
IN Pakistan
Table B records:
Country_code Car_name
-------------------------------------
IN Verna
IN BMW
PK Audi
When I try to do inner join output returns as 0 records (key column is country_code).
But when I use integer in place of varchar as data type of contry code, job works fine.
Please provide the solution that where I am committing the mistake.
Thanks,