Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. SELECT opportunities.ref FROM opportunities GROUP BY opportunities.ref
  2.  
  3. OP10
  4. OP252
  5. OP52905
  6. OP42
  7.  
  8. 'OP10'
  9. 'OP252'
  10. 'OP52905'
  11. 'OP42'
  12.  
  13. SELECT opportunities.ref FROM opportunities
  14. CASE WHEN opportunities.ref IS NOT NULL THEN "'"+opportunitiesref+"'"
  15. GROUP BY opportunities.ref
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement