How do you write out ‘AND’ and ‘OR’ in LINQ.
Ive tried the ‘AND’ keyword as well as ‘&&’ and a ‘,’.
I have also googled it and havent come across anything that helps.
Any help will be highly appreciated
Thanks
EDIT:
int[] moreScores = new int[]{12,12,45,45,87,96};
int[] scores = new int[] { 97, 92, 81, 60 };
// Define the query expression.
IEnumerable<int> scoreQuery =
from score in scores
and moreScores
where score > 80
select score;
it depends on the langauge you use
in C#,
&&for AND and||for ORin VB,
ANDfor AND andORfor ORnow, what language are you using?
UPDATE 1
you want to join the two tables first right?
UNIONmethod excludes duplicates from the return set.