Want to improve this question? Add details and clarify the problem by editing this post.
Closed 10 years ago.
怎么样:
select * from order where order_number in (select order_number from order_details group by order_number having count(*) = 1)
How about:
SELECT O1.order_number FROM Orders AS O1 WHERE 1 = ( SELECT COUNT(*) FROM OrderDetails AS D1 WHERE O1.order_number = D1.order_number );
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
怎么样:
How about: