SQL: query to show how many users have each property (grouped)
问题 I'm new to SQL and can't seem to ask the right question, as in every time I formulate it differently I end up with the same results: A query that groups data by several properties (users that share more than one property). I'm writing a JSP-based website on the Glassfish server, and manage the database from MS Access. What I'm interested in, is basically grouping by several distinct properties. Say I have a table that shows which items a user has. Something like this: id | name | item1 |