In reference to my question,
how can i update SQL table logic
I want a query which will do something like this,
I my last question was confusing hence I am asking a different question.
How can I update Crate IDs of List of Fruits in single SQL query in c#
FruitID and CrateID are foriegn keys and will always in other tables.
Try using
IN
:Or
You can also use
LIKE
to matchMango
andOrange
however this may update the incorrect results (Say you want Orange 199 to be updated to Crate 7 but want Orange 198 to be Crate 6)