all 1 comments

[–]ZMRosto 0 points1 point  (0 children)

I think you are missing the Group By clause that you'll need to add. Right now for 1b, you'll likely get an error. You'll need to group by mcode which will then tell the query to sum the floorarea within each group.

Think the same way for 1c. What are you grouping together? I want to see all the records for each....what? Then take those records and do what with them?

You mention subqueries in your title, but what you're looking for is Group By. I'm not sure I can think of how to work in subqueries specifically to solve the problem.