So I am trying to perform this query on my database:
select
count(*)
from (select
userID
from users
where rating> 1000
except (select
userID
from users
where rating > 1000
except select sellerID from auctions));
And am getting this error: "Error: near line 1: near "(": syntax error"
Any help appreciated
How about using this instead? Is this the logical equivalent?
SELECT COUNT(*) FROM Users
WHERE Rating > 1000
AND UserID NOT IN (SELECT SellerID FROM Auctions)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.