I have two tables
user:
id,
username
and
app:
userid,
appid,
mainid
I want to display users that dont have a record in this table.I get from address mainId
and appid
.If I run this query
SelectQuery("select User.UserName
from User
INNER JOIN App
ON User.Id = App.UserId
where App.Mainid!= ".$var_MainId." and App.AppId<>".$var_AppId);
It doesnt show the users that may have same userid
and mainid
but not same appid