I have these two tables:
1. users
-id
-name
-email
-rank
2. pages
-user
-id
I need to select all the data from users and count how many pages did he wrote (from pages user is the id of the user from users table).
Can you make it into 1 complex query?
I can’t make it into a complex query, but here’s a simple one: