networkfarm
2010-07-20 12:23:24 UTC
Table: TInvoice has Cols: Invoice, Customer
Entries: Inv001, C001 | Inv002, C002
Table: TCustomer has Cols: Customer, Country
Entries: C001, Japan | Inv002, USA
My goal is to show all invoices of customers only in USA so i did the following
Select * from TInvoice where Customer in (Select Customer from TCustomer where Country='USA')
The output given was all the invoices.. Did i make any mistakes?