I am having trouble recording the request and I donβt even know if this is possible. Take this table for example:
id group active 1 A NO 2 A YES 3 A NO 4 B YES 5 B NO 6 C NO 7 C NO
The above table is just an example. There are many more columns in a real table, and that means such a tree. I need a way to select only group names that do not have an active string. In this case, the groups βAβ and βBβ have at least one line with βactiveβ = βYESβ, but if you look at C, there are no active lines. The only thing I will need as a result is the value of the group column (in this case, βCβ) is not an entire row.
Is it possible?
mysql select
Srka
source share