I have a basic SQL query, starting with:
SELECT top 20 application_id, [name], location_id FROM apps
Now, I would like to finish it so that it
WHERE CHARINDEX(LocationId, @lid) > 1