q_database.accdb
| DELNO | DELQTY | ITEMNAME | DEPTNAME | SPLNO |
| 51 | 50 | Pocket knife - Nile | Navigation | 105 |
| 52 | 10 | Pocket knife - Nile | Books | 105 |
| 53 | 10 | Pocket knife - Nile | Clothes | 105 |
| 54 | 10 | Pocket knife - Nile | Equipment | 105 |
| 55 | 10 | Pocket knife - Nile | Furniture | 105 |
| 56 | 10 | Pocket knife - Nile | Recreation | 105 |
| 57 | 50 | Compass | Navigation | 101 |
| 58 | 10 | Geo positioning system | Navigation | 101 |
| 59 | 10 | Map measure | Navigation | 101 |
| 60 | 25 | Map case | Navigation | 101 |
| 61 | 2 | Sextant | Navigation | 101 |
| 62 | 1 | Sextant | Equipment | 105 |
| 63 | 20 | Compass | Equipment | 103 |
| 64 | 1 | Geo positioning system | Books | 103 |
| 65 | 15 | Map measure | Navigation | 103 |
| 66 | 1 | Sextant | Books | 103 |
| 67 | 5 | Sextant | Recreation | 102 |
| 68 | 3 | Sextant | Navigation | 104 |
| 69 | 5 | Boots - snakeproof | Clothes | 105 |
| 70 | 15 | Pith helmet | Clothes | 105 |
| 71 | 1 | Pith helmet | Clothes | 101 |
| 72 | 1 | Pith helmet | Clothes | 102 |
| 73 | 1 | Pith helmet | Clothes | 103 |
| 74 | 1 | Pith helmet | Clothes | 104 |
| 75 | 5 | Pith helmet | Navigation | 105 |
| 76 | 5 | Pith helmet | Books | 105 |
| 77 | 5 | Pith helmet | Equipment | 105 |
| 78 | 5 | Pith helmet | Furniture | 105 |
| 79 | 5 | Pith helmet | Recreation | 105 |
| 80 | 10 | Pocket knife - Nile | Navigation | 102 |
| 81 | 1 | Compass | Navigation | 102 |
| 82 | 1 | Geo positioning system | Navigation | 102 |
| 83 | 10 | Map measure | Navigation | 102 |
| 84 | 5 | Map case | Navigation | 102 |
| 85 | 5 | Compass | Books | 102 |
| 86 | 5 | Pocket knife - Avon | Recreation | 102 |
| 87 | 5 | Tent - 2 person | Recreation | 102 |
| 88 | 2 | Tent - 8 person | Recreation | 102 |
| 89 | 5 | Exploring in 10 Easy Lessons | Navigation | 102 |
| 90 | 5 | How to Win Foreign Friends | Navigation | 102 |
| 91 | 10 | Exploring in 10 Easy Lessons | Books | 102 |
| 92 | 10 | How to Win Foreign Friends | Books | 102 |
| 93 | 2 | Exploring in 10 Easy Lessons | Recreation | 102 |
| 94 | 2 | How to Win Foreign Friends | Recreation | 102 |
| 95 | 5 | Compass | Equipment | 105 |
| 96 | 2 | Boots - snakeproof | Equipment | 105 |
| 97 | 20 | Pith helmet | Equipment | 106 |
| 98 | 20 | Pocket knife - Nile | Equipment | 106 |
| 99 | 1 | Sextant | Equipment | 106 |
| 100 | 3 | Hat - polar explorer | Clothes | 105 |
| 101 | 3 | Stetson | Clothes | 105 |
| DEPTNAME | DEPTFLOOR | DEPTPHONE | EMPNO |
| Management | 5 | 34 | 1 |
| Books | 1 | 81 | 4 |
| Clothes | 2 | 24 | 4 |
| Equipment | 3 | 57 | 3 |
| Furniture | 4 | 14 | 3 |
| Navigation | 1 | 41 | 3 |
| Recreation | 2 | 29 | 4 |
| Accounting | 5 | 35 | 5 |
| Purchasing | 5 | 36 | 7 |
| Personnel | 5 | 37 | 9 |
| Marketing | 5 | 38 | 2 |
| EMPNO | EMPFNAME | EMPSALARY | DEPTNAME | BOSSNO |
| 1 | Alice | ¤ 75,000.00 | Management |
|
| 2 | Ned | ¤ 45,000.00 | Marketing | 1 |
| 3 | Andrew | ¤ 25,000.00 | Marketing | 2 |
| 4 | Clare | ¤ 22,000.00 | Marketing | 2 |
| 5 | Todd | ¤ 38,000.00 | Accounting | 1 |
| 6 | Nancy | ¤ 22,000.00 | Accounting | 5 |
| 7 | Brier | ¤ 43,000.00 | Purchasing | 1 |
| 8 | Sarah | ¤ 56,000.00 | Purchasing | 7 |
| 9 | Sophie | ¤ 35,000.00 | Personnel | 1 |
| 10 | Sanjay | ¤ 15,000.00 | Navigation | 3 |
| 11 | Rita | ¤ 15,000.00 | Books | 4 |
| 12 | Gigi | ¤ 16,000.00 | Clothes | 4 |
| 13 | Maggie | ¤ 16,000.00 | Clothes | 4 |
| 14 | Paul | ¤ 11,000.00 | Equipment | 3 |
| 15 | James | ¤ 15,000.00 | Equipment | 3 |
| 16 | Pat | ¤ 15,000.00 | Furniture | 3 |
| 17 | Mark | ¤ 15,000.00 | Recreation | 3 |
| ITEMNAME | ITEMTYPE | ITEMCOLOR |
| Boots - snakeproof | C | Green |
| Camel saddle | R | Brown |
| Compass | N | - |
| Elephant polo stick | R | Bamboo |
| Exploring in 10 Easy Lessons | B | - |
| Geo positioning system | N | - |
| Hammock | F | Khaki |
| Hat - polar explorer | C | White |
| How to Win Foreign Friends | B | - |
| Map case | E | Brown |
| Map measure | N | - |
| Pith helmet | C | Khaki |
| Pocket knife - Avon | E | Brown |
| Pocket knife - Nile | E | Brown |
| Safari chair | F | Khaki |
| Safari cooking kit | F | - |
| Sextant | N | - |
| Stetson | C | Black |
| Tent - 2 person | F | Khaki |
| Tent - 8 person | F | Khaki |
| SALENO | SALEQTY | ITEMNAME | DEPTNAME |
| 1001 | 2 | Boots - snakeproof | Clothes |
| 1002 | 1 | Pith helmet | Clothes |
| 1003 | 1 | Sextant | Navigation |
| 1004 | 3 | Hat - polar explorer | Clothes |
| 1005 | 5 | Pith helmet | Equipment |
| 1006 | 1 | Pocket knife - Nile | Clothes |
| 1007 | 1 | Pocket knife - Nile | Recreation |
| 1008 | 1 | Compass | Navigation |
| 1009 | 1 | Geo positioning system | Navigation |
| 1010 | 5 | Map measure | Navigation |
| 1011 | 1 | Geo positioning system | Books |
| 1012 | 1 | Sextant | Books |
| 1013 | 3 | Pocket knife - Nile | Books |
| 1014 | 1 | Pocket knife - Nile | Navigation |
| 1015 | 1 | Pocket knife - Nile | Equipment |
| 1016 | 1 | Sextant | Clothes |
| 1017 | 1 | Sextant | Equipment |
| 1018 | 1 | Sextant | Recreation |
| 1019 | 1 | Sextant | Furniture |
| 1020 | 1 | Pocket knife - Nile | Furniture |
| 1021 | 1 | Exploring in 10 Easy Lessons | Books |
| 1022 | 1 | How to Win Foreign Friends | Books |
| 1023 | 1 | Compass | Books |
| 1024 | 1 | Pith helmet | Books |
| 1025 | 1 | Elephant polo stick | Recreation |
| 1026 | 1 | Camel saddle | Recreation |
| SPLNO | SPLNAME |
| 101 | Global Books & Maps |
| 102 | Nepalese Corp. |
| 103 | All Sports Manufacturing |
| 104 | Sweatshops Unlimited |
| 105 | All Points, Inc. |
| 106 | Sao Paulo Manufacturing |
SELECT itemname
FROM qitem
WHERE not exists
(select * from qspl
where not exists
(select * from qdel
where qdel.splno = qspl.splno
AND qdel.itemname = qitem.itemname));
SELECT itemname
FROM qitem
WHERE itemcolor = 'green' AND not exists
(select * from qspl
where not exists
(select * from qdel
where qdel.splno = qspl.splno
AND qdel.itemname = qitem.itemname));