Skip to content
Advertisement

Finding out information from two tables – SQL

everyone! I’m at the point of my SQL learning where I’m having a hard time trying to search to explain what I’m trying to do with SQL but here’s what I got.

I have two tables. Let’s call the first one:

And the second one:

What I’m trying to do is get all account names and the number of documents associated. Thanks!

Advertisement

Answer

One simple method is a correlated subquery:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement