Hi
I have 2 tables
Table 1 ID Status 1 D 2 F 3 D Table 2 SID ID Approve 1 1 N 2 1 Y 3 1 Y 4 2 Y 5 3 Y Result:- Should be Table 1 (ID, Status) 3, D 2,F
Should not display 1 (As one of child rows have N in the Approve Column)
I need a query to joins 2 tables on ID and finds records that don not have N in their Approve column. Does anyone have any clue how to implement this?
I tried
SELECT * FROM Table1 AS t1 INNER JOIN Table2 AS t2 ON t2.id = t1.id WHERE t2.Approve != 'N'
Doesn’t work