Search query, 'order by' priority
问题 I need implement simple search in small content table: id, name, description, content. Results must be order by priorities name description content it's mean that if searched word was found in description field, it will be shown only after all rows that have dog in name field What I did: I tried create temp table with structure like table that I use but with another field priority. for each field, these I use for search, do insert select to temp table Example: DECLARE @query NVARCHAR(255)