Consider the following query-
SELECT * FROM GAME_LIST WHERE
genre = (SELECT Genre FROM GAME_LIST WHERE name='$searchTerm') OR
publisher = (SELECT Publisher FROM GAME_LIST WHERE name='$searchTerm')
ORDER BY CASE WHEN name LIKE '%$searchTerm%' then 1 else 2 end, points DESC
This query will generate number of rows from GAME_LIST
table. For example-
A - 123 - W
B - 235 - R
C - 323 - R
D - 146 - R
E - 167 - W
F - 189 - W
G - 165 - R
But I don't want to include the first row (in this case A - 123 - W
).
How can I achieve this within my existing query?