I’ve tried a few things, but I’m drawing a blank. Here’s my query:
SELECT *
FROM Companies
WHERE
Symbol LIKE 'ZY%' OR
Name LIKE '%ZY%'
ORDER BY Symbol ASC
LIMIT 2;
Basically I want “ZY” to match (ZNGA, Zynga Inc) before it matches (HALO, Halozyme Therapeuti…).
Obviously the reason for the order is this part of the query:
ORDER BY Symbol
Am I missing something obvious here?
You simply need to add it to the Order By clause