i have these tables:
- tblstaff (staff_id, SName, Department)
- tblorder (order_id, orderdate, cus_id, tootalAmount, staff_id)
i want to display all names and department of staffs who did not approve an order. The code below shows me empty set.
SELECT s.SName, s.Department from tblstaff s
INNER JOIN tblorder o
on s.staff_id=o.staff_id
WHERE o.order_id is Null;