简体   繁体   中英

Why am I getting “Enter Parameter Value”?

I'm trying to list all publishers with one book on the database.

Query:

SELECT Publisher
FROM book
GROUP BY Publisher
HAVING COUNT(book) = 1;

My guess is the problem is here ...

HAVING COUNT(book) = 1

The table is named book . Unless that table also includes a field named book , Access will be confused.

If you want to see Publisher which have only one row, use this ...

SELECT Publisher
FROM book
GROUP BY Publisher
HAVING COUNT(*) = 1;

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM