I have two tables say A and B. A has many columns like Date, Customer, Price, typedesc etc. B has only one column typedesc. I want to retrieve rows in A whose typedesc is in B. So I wrote
select * from A where typedesc in (select typedesc from B)
I got 0 rows in result. So i tried
select A.* from A inner join B on A.typedesc=B.typedesc
Still I am getting 0 rows in result
I manually checked the typedesc column in both tables, there are matching entries. typedesc contains strings and it is of type varchar2
Here are the sample tables
A
DATE CUSTOMER TYPEDESC SKU PRICE
02/01/2013 4567 CREAM CORDIALS 1234 23
03/01/2013 3256 U.S. BRANDY 3322 10.5
B
TYPEDESC
CREAM CORDIALS
FIRE WHISKY