我想找個誰沒有作出任何命令我怎麼能使用連接查詢找到交集
我的想法是,Get all user ids and substract the unique ids in orders table
我怎麼能轉換它在MySQL查詢語法的用戶。
mysql> select * from users;
+------+
| id |
+------+
| 1 |
| 2 |
| 3 |
+------+
3 rows in set (0.00 sec)
mysql> select * from orders;
+------+---------+--------+
| id | user_id | amount |
+------+---------+--------+
| 1 | 1 | 10.00 |
| 1 | 2 | 5.00 |
+------+---------+--------+
2 rows in set (0.00 sec)
感謝您的精心探索:) – user3675188
非常歡迎您親愛的! – 1000111