Skip to content
Advertisement

How to join two tables and add a limit

Given two tables in a SQLite database,

app_vendor

app

and I am trying to get 10 ‘names’ from ‘app’ (names of apps) for a given ‘vendor_id’

What am I doing wrong?

Advertisement

Answer

Your WHERE clause is in the wrong location. You can do:

Result:

See running example at DB Fiddle.

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