C# Querying With LINQ Now You're Querying Ordering and Grouping

Brendan Whiting
MOD
Brendan Whiting
Front End Web Development Treehouse Moderator 84,103 Points

Is this "into" key word kindof like a SQL join?

from b in birds                                                                                        
group b by b.Color into birdsByColor                                                                   
where birdsByColor.Count() > 1                                                                         
select new { Color = birdsByColor.Key, Count = birdsByColor.Count() }       

1 Answer

Daniel Medina
Daniel Medina
13,863 Points

The "into" keyword is more similar to SQL's AS keyword in that it makes a temporary name for your selection, grouping, join, etc.