I have a table with two columns:
Name | Type
Now I am querying this table from an autocomplete HTML form and I would like to get a result similar to this pseudo query.
SELECT 10 Closest_Names FOR EACH TYPE WHERE Names LIKE INPUT
Any idea how the real query would look like?