
Untitled
By: a guest on
Sep 24th, 2012 | syntax:
None | size: 1.62 KB | hits: 21 | expires: Never
mysql> select master.dn from master left outer join slave on (slave.dn=master.dn) where slave.dn is null;
+-------------------------------------------------+
| dn |
+-------------------------------------------------+
| dc=hq,dc=local |
| cn=Directory Administrators,dc=hq,dc=local |
| ou=Groups,dc=hq,dc=local |
| ou=People,dc=hq,dc=local |
| ou=Special Users,dc=hq,dc=local |
| cn=Accounting Managers,ou=Groups,dc=hq,dc=local |
| cn=HR Managers,ou=Groups,dc=hq,dc=local |
| cn=QA Managers,ou=Groups,dc=hq,dc=local |
| cn=PD Managers,ou=Groups,dc=hq,dc=local |
+-------------------------------------------------+
9 rows in set (0.00 sec)
mysql> select slave.dn from slave left outer join master on (mater.dn=slave.dn) where master.dn is null;
ERROR 1054 (42S22): Unknown column 'mater.dn' in 'on clause'
mysql> select slave.dn from slave left outer join master on (master.dn=slave.dn) where master.dn is null;
+-------------------------------------------------+
| dn |
+-------------------------------------------------+
| dc=qh,dc=local |
| ou=Groups,dc=qh,dc=local |
| cn=PD Managers,ou=Groups,dc=qh,dc=local |
| cn=QA Managers,ou=Groups,dc=qh,dc=local |
| cn=HR Managers,ou=Groups,dc=qh,dc=local |
| cn=Accounting Managers,ou=Groups,dc=qh,dc=local |
+-------------------------------------------------+
6 rows in set (0.00 sec)