Hi i am trying to write a caml query query for the below statement,
(City="A" || FirstName="A" || LastName="A" ) && (color="red" || color="green"|| color="blue"|| color="violet")
This is the CAMl Query i have written but its not working
<Query><Where><And><Or><Contains><FieldRef Name='City' /><Value Type='Text'>A</Value></Contains><Or><Contains><FieldRef Name='FirstName' /><Value Type='Text'>A</Value></Contains><Contains><FieldRef Name='LastName' /><Value Type='Text'>A</Value></Contains></Or></Or></And><And><Or><Contains><FieldRef Name='Color' /><Value Type='Text'>Red</Value></Contains><Or>
GreenBlueViolet