thefourthwall
IS-IT--Management
I'm working with a select query and want to show just the duplicate values of Employee_ID. After first searching here I attempted to start the duplicates query wizard in Access but that wizard seems to be unavailable.
I want to show just the duplicates, and how many instances of them there are, but am having trouble with the results; my SQL knowledge is still sparse. The code is:
I want to show just the entries with duplicate EMPLOYEE_ID values to know which users are assigned more than one cell phone, but need help. Thanks.
I want to show just the duplicates, and how many instances of them there are, but am having trouble with the results; my SQL knowledge is still sparse. The code is:
Code:
SELECT tblDevice.Cell_Number, tblEmployee.LAST_NAME, tblEmployee.FIRST_NAME, tblEmployee.MIDDLE_INITIAL, tblEmployee.EMPLOYEE_ID, tblDevice.Spare, tblDevice.Aircard, tblDevice.PTTyn, tblDevice.PushToTalkOnly, tblDevice.WPSyn, tblDevice.ESN, tblDevice.SIM, tblDevice.MSNorPIN, tblDevice.IMEI, tblDevice.Direct_Connect_Number, tblDevice.Comments, tblDevice.Model, tblDevice.Carrier, tblDevice.Date_Last_Change, tblDevice.EID, tblEmployee.NAME_SUFFIX, tblEmployee.TZS_CODE, tblEmployee.TITLE_CODE, tblEmployee.AD_USER_NAME, tblEmployee.TZS_DESCRIPTION, tblEmployee.TITLE_DESCRIPTION, tblEmployee.SEX_CODE
FROM tblEmployee INNER JOIN tblDevice ON tblEmployee.EMPLOYEE_ID = tblDevice.EID
ORDER BY tblEmployee.LAST_NAME, tblEmployee.FIRST_NAME, tblEmployee.MIDDLE_INITIAL, tblEmployee.EMPLOYEE_ID;