So I have a table with 10 records.
SELECT * FROM Komponens WHERE fkod = "SO"
It gives me a table with about 5 record. But I want the result without that 5 records.
For example:
fkod kkod
SU AA
SU AC
SA AB
CI AC
CI AA
fkod is the name of spice (SU – sugar, SA – salt, CI – cinnamon) and kkod is the name of the mixture of spices. I’m out of sugar and I want to show the mixtures that I can create, because there is no sugar needed for them (in this case just SA – AB).
If I use SELECT * FROM Komponens WHERE fkod != "SU" I get AB, AC and AA.
How can I solve it in SQL?
Amend to work with the new logic. Please try this: