Way to display data of non entry items
Good Afternoon,
I have a table called BKS which stands for Book Sales. Each week each person that sold a book will be entered into the BKS database table i.e. BKS.ID, BKS.EMPLOYEE_ID, BKS.title, BKS.publisher, BKS.SALESAMT)
The insert works just fine because only those who sold books will be inserted into the BKS table. where i'm havng a problem is i wish to call up a list of employees from another table called EMPLOYEE who did not sale any books. My syntax look like this:
<cfoutput query name="NoSales" datasource"Book_Transaction">
SELECT BKS.ID, BKS.employee_id, BKS.title, BKS.publisher, BKS.SALESAMT
FROM BKS
WHERE BKS.employee_id <> #url.id#
AND BKS.SALESAMT = '0'
AND BKS.SALESAMT =''
order by BKS.Fname
</cfquery>
Though the employee who did not sale anything is not on the BKS table, i am struggling to find a way to list those from my EMPLOYEE table who did not do anything.
