Skip to content
Advertisement

Select from a table and count from another

i have two tables, one for authors the other for books, i want to count the number of books per author

I used the sql query:

The query returns 1 for first author instead of 2

Advertisement

Answer

Use FIND_IN_SET()

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