974 views
1 votes
1 votes
Consider the relation Customers (custid, name , address , city , state , introducer)

List all the customers who have introduced at least one other customer

1) Select distinct e.name from Customer e, Customer F where f.introducer =e.ename

2) Select distinct e.name from Customer e, Customer F where f.introducer <>e.name

1 Answer

Best answer
2 votes
2 votes
1 should work.
selected by

Related questions

0 votes
0 votes
1 answer
3
rayhanrjt asked Jan 6, 2023
824 views
Write SQL command to find DepartmentID, EmployeeName from Employee table whose average salary is above 20000.
2 votes
2 votes
1 answer
4
Subhrangsu asked Jun 18, 2022
458 views
Write SQL query to show all employees hired on June 4,1984 (non-default format)emp(empno,ename,job,mgr,hiredate,sal,comm,deptno)