Posts by Raiiy • 1 point
1 post
-
0
votes4
answers1407
viewsA: Prioritize word in SQL query - Mssql
From what I understand from your description, you could use the following select: SELECT campos, 1 AS flag_busca FROM tabela where campo LIKE '%fisica%' UNION SELECT campos, 2 AS flag_busca from…