oracle - Either in not both clause in select sql -
Find names of both departments located in Boston or Broker "Not in Both Cities.
The code is
from SELECT D.DNAME on the Department de Inner Daptolko L. LDN = DDMAN.NNLLI .ttt = 'Boston' or L.City = DALLAS '; But this department which is located in Boston or the broker, but I only Want me to get results
Example: In my Dispoto Comble
// DEPTOPO DAME CITY ---------------- Account Basis Account Broker Sales Brokers Transport Boston Transport Brokers Then in my department I should get the output like
DNAME ---------- Sales < Create a group, then calculate the total for each department, then divide them into all the departments. Filter who have only one place. SELECT D.DNAME Join DEPTLOC L ON L.DNAME = D.DNAME WHERE L.CITY = 'BOSTON' or L.CITY = 'DALLAS' Group by D. DNA vs. COUNT (1) = 1
Comments
Post a Comment