[Solved] List of locations with number of unchecked items

Discuss the database features
Post Reply
Kirjava
Posts: 41
Joined: Sun May 03, 2015 2:58 pm

[Solved] List of locations with number of unchecked items

Post by Kirjava »

I have a query to check how many items are in each location, but how do I tell it I only want it to count those marked unchecked?
Current: SELECT "Location", COUNT( * ) AS "count" FROM "Master List" GROUP BY "Location"
There's 86 items listed as being on Shelf 4, but I want to know how many of them are checked or not.
Thank you.
Last edited by Kirjava on Tue Nov 03, 2026 6:05 pm, edited 1 time in total.
OpenOffice 3.1 on Windows 7
FJCC
Moderator
Posts: 9652
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: List of locations with number of unchecked items

Post by FJCC »

If the column that marks the checked status is called Status, the query would look something like

Code: Select all

 SELECT "Location", COUNT( * ) AS "count" FROM "Master List" WHERE "Status" = 'checked' GROUP BY "Location"
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Kirjava
Posts: 41
Joined: Sun May 03, 2015 2:58 pm

Re: List of locations with number of unchecked items

Post by Kirjava »

Yep, does exactly what I want. Thank you.
OpenOffice 3.1 on Windows 7
Post Reply