I’m curious, is this result set can be achieved with sql query?
Here is the table
item_id name availability
-----------------------------------
1 brush available
2 brush available
3 paint not available
4 paint available
here is the result
name available not available
---------------------------------------
brush 2 0
paint 1 1
what could the query look like?
1 Answer