Guest User

Untitled

a guest
Jun 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. SELECT
  2. *
  3. FROM
  4. postings Postings
  5. // LEFT JOIN query ..
  6. WHERE
  7. (
  8. // where query..
  9. )
  10. ORDER BY
  11. Postings.premium DESC,
  12. FIELD(Postings.source, "local") DESC,
  13. Postings.cpc DESC
  14.  
  15. SELECT
  16. MATCH (Postings.title) AGAINST ('developer' IN BOOLEAN MODE) AS `Postings__relavance_title`,
  17. MATCH (Postings.description) AGAINST ('developer' IN BOOLEAN MODE) AS `Postings__relavance_description`,
  18. // other Fields
  19. FROM
  20. postings Postings
  21. // LEFT JOIN queries ...
  22. WHERE
  23. (
  24. MATCH (
  25. Postings.title, Postings.description
  26. ) AGAINST ('developer' IN BOOLEAN MODE)
  27. )
  28. ORDER BY
  29. (Postings__relavance_title * 2)+ Postings__relavance_description DESC,
  30. Postings.premium DESC,
  31. FIELD(Postings.source, "local") DESC,
  32. Postings.cpc DESC
Add Comment
Please, Sign In to add comment