I am trying for this get customer name and employee pairs such that the customer with name has placed an order through the employee the customer should make at-least two orders i,e >1 Employees table is ENO ENAME ZIP HDATE1 xsss 111 2008-03-17 00:00:00.0002 lkjdhg 222 2009-10-19 00:00:00.0003 dsaddfff 333 2008-02-19 00:00:00.000
Customers Table is CNO CNAME Street ZIP PHONE2201 PGB NSDSTE 188209 100743212202 NGO NHDTE 12209 743212203 WSQ ASATE 13509 40074321
orders table is ONO CNO ENO RD.date SHP.DATE1001 2200 1 2008-02-19 00:00:00.000 2009-03-10 00:00:00.0001002 2201 2 2008-03-29 00:00:00.000 2009-01-11 00:00:00.0001003 2200 3 2008-09-19 00:00:00.000 2009-06-02 00:00:00.000
i am trying like select C.CNAME, E.Ename from customers C join Employees E ON O.CNO=C.CNO and O.PNO=E.PNO or(select CNO from orders o group by CNO having count(ENO)>1)
can you help me for the modification on code With RegardsKashyap M