Hi,
I have an SQL query:
select staff.*,managers.* from staff,managers where staff.user_id = '2' or managers.user_id = '2'
I am trying to select rows from the database where the userid in the staff table = 2 or the userid in the managers table = 2. There are rows in the staff table but not in the manager table. It is failing to return any rows.
Could anyone take a look, thanks!