嗨,我正在尝试显示每个制造商生产的所有饮料,除了碳酸饮料的使用存在和子查询,但它给了我一个空集,请帮帮我
mysql> 'select * from drink';
+----------------+------------+----------------+
| name | type | manf |
+----------------+------------+----------------+
| Coca-cola zero | carbonated | Coca-Cola |
| Mirinda | carbonated | PepsiCo |
| Big Apple | carbonated | Murree Brewery |
| Big Lemon | carbonated | Murree Brewery |
| Big Orange | carbonated | Murree Brewery |
| Peach Malt | malt | Murree Brewery |
| Lemon Malt | malt | Murree Brewery |
| Apple Malt | malt | Murree Brewery |
| New Coke | carbonated | Coca-Cola |
| Diet Coke | carbonated | Coca-Cola |
| Pepsi | carbonated | PepsiCo |
| Fruita vitals | Juice | Nestle |
| Twister | Juice | Shezan |
| Nescafe | cofee | Nestle |
| Cappuccino | Cofee | Gloria Jeans |
| Caffe Latte | Cofee | Gloria Jeans |
| Flat White | Cofee | Gloria Jeans |
+----------------+------------+----------------+
17 rows in set (0.00 sec)
查询我试过但它没有给我结果
SELECT * FROM drink WHERE NOT EXISTS (SELECT * FROM drink WHERE drink.type = 'carbonated');