Hi.
I have 3 tables in SQL: T1, T2, T3.
I wish to display data from T1 where the quantity is more than quantity in T2 but not in T3.
I used below query but it doesn't return any result.
SELECT Code, Desc
FROM T1 LEFT JOIN T2
ON T1.Code = T2.Code
WHERE T1.Qty > T2.Qty AND T1.Code NOT IN
(SELECT Code FROM T3)
Anyone pls help on this..
Thanks..
I have 3 tables in SQL: T1, T2, T3.
I wish to display data from T1 where the quantity is more than quantity in T2 but not in T3.
I used below query but it doesn't return any result.
SELECT Code, Desc
FROM T1 LEFT JOIN T2
ON T1.Code = T2.Code
WHERE T1.Qty > T2.Qty AND T1.Code NOT IN
(SELECT Code FROM T3)
Anyone pls help on this..
Thanks..