I am trying to get all staff and there supervisor. the staff ID and supervisor id are the same numbers in different columns. so staff johm smith id 23 has supervisor roger id 22.
this query works and shows the results i want but each row duplicated mant times?
SELECT View_User_Properties_Master.User_id, View_User_Properties_Master.[First Name], View_User_Properties_Master.[Last Name], View_User_Properties_Master.Supervisor, View_User_Properties_Master.gen_Approvelimit, View_User_Properties_Master.Department,
View_User_Properties_Master.Division, View_userproperties.User_id AS SPID, View_userproperties.gen_Firstname AS SPFN,
View_userproperties.gen_Lastname AS SPLN
FROM
View_User_Properties_Master INNER JOIN
View_userproperties ON View_User_Properties_Master.Supervisor = View_userproperties.User_id CROSS JOIN [All Users Plus]
this query works and shows the results i want but each row duplicated mant times?
SELECT View_User_Properties_Master.User_id, View_User_Properties_Master.[First Name], View_User_Properties_Master.[Last Name], View_User_Properties_Master.Supervisor, View_User_Properties_Master.gen_Approvelimit, View_User_Properties_Master.Department,
View_User_Properties_Master.Division, View_userproperties.User_id AS SPID, View_userproperties.gen_Firstname AS SPFN,
View_userproperties.gen_Lastname AS SPLN
FROM
View_User_Properties_Master INNER JOIN
View_userproperties ON View_User_Properties_Master.Supervisor = View_userproperties.User_id CROSS JOIN [All Users Plus]