I have the following table called TableA
+-----------+--------+--------+
| RequestId | FkLId | FkSId |
+-----------+--------+--------+
| 100 | 285301 | 110 |
+-----------+--------+--------+
| 200 | 285301 | 99 |
+-----------+--------+--------+
| 300 | 285301 | 100 |
+-----------+--------+--------+
| 400 | 285301 | 98 |
+-----------+--------+--------+
| 500 | 285301 | 93 |
+-----------+--------+--------+
| 600 | 285302 | 93 |
+-----------+--------+--------+
| 700 | 285302 | 94 |
+-----------+--------+--------+
And also have another table called TableB
+-----------+--------+-------+
| ServiceId | FkLId | FkSId |
+-----------+--------+-------+
| 500 | 285301 | 109 |
+-----------+--------+-------+
| 501 | 285301 | 99 |
+-----------+--------+-------+
I need to take All the Ids in TableA, not exists in TableB. My Query as follows,
SELECT FkSId
FROM TableA
WHERE FkLId NOT IN (SELECT FkSId FROM TableB) AND FkLId = 285301
But its only returns 110
I need 110,100,98,93
output