Server shutdown in progress
SELECT id,title,requirement,company,experience,city,site,source_url,category,description,employment_conditions,salary_offered,(CASE WHEN date_posted = date_start and date_start >='2024-03-29' THEN 1 WHEN date_start >= '2024-04-28' THEN 1 ELSE 0 END ) as nbr_active,(CASE WHEN premium =1 THEN 0 ELSE 0 END ) as premium,(CASE WHEN title like '%Representant%' THEN 4 ELSE 0 END ) as nbr_title_0,(CASE WHEN description like '%Representant%' THEN 2 ELSE 0 END ) as nbr_keyword_0,(CASE WHEN title like '%Representant%' OR description like '%Representant%' OR requirement like '%Representant%' THEN 1 ELSE 0 END ) as nbr_key_0,(CASE WHEN title like '%senior%' THEN 2 ELSE 0 END ) as nbr_title_1,(CASE WHEN description like '%senior%' THEN 1 ELSE 0 END ) as nbr_keyword_1,(CASE WHEN title like '%senior%' OR description like '%senior%' OR requirement like '%senior%' THEN 1 ELSE 0 END ) as nbr_key_1,date_insertion,date_start,(CASE WHEN date_posted >= '2024-04-21' THEN 1 ELSE 0 END ) as nbr_week,(CASE WHEN date_posted >= '2024-03-29' THEN 1 ELSE 0 END ) as nbr_month FROM jobs WHERE status = 1 AND (state = 'quebec' OR state = 'qc') AND date_posted <= '2024-04-28' AND MATCH(title,company,description,tags) AGAINST ('Representant senior') ORDER BY nbr_active DESC,nbr_title_0 +nbr_title_1 DESC,date_posted DESC,nbr_key_0 +nbr_key_1 DESC,nbr_keyword_0 +nbr_keyword_1 DESC,description ASC,id DESC LIMIT 0 , 100