Select from following answers:- from s in suppliers where s.City == "Redmond" select s;

- from s in suppliers select new { City = "Redmond" };
- from s in suppliers orderby s.City, "Redmond" select s;
- All Above
Use a query with a WHERE clause to filter upon a single condition, such as when the Supplier.City value is "Redmond".
Specifying City = "Redmond" in the select clause creates a dynamic type with a City property set to "Redmond", not the desired result set.
Use an OrderBy clause to order the results, not filter them.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator