I've gotten really rusty with TSQL I'm ashamed to say. Using Entity Framework has made me forget what little TSQL I even knew. And I haven't exactly made very complex queries with Entity Framework either, just never had the need to sad to say.
This is one exercise our professor gave us this Friday:
"Monica buys a gallon of milk from the supermarket "Peoples" every Sunday.
Create a database schema that would accomodate this requirement and also create a query that returns, a list of products bought by Monica ordered by product Category."
The database schema I have no problem creating, it's the query that has me for a loop.
I realize that without providing the schema it's just sharing the TSQL from your imaginary schema will teach me a lot about TSQL.
Thanks for your time.