select p.Id, case when p.Tags like '%status-completed%' t...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Overflow

Q&A about the site for professional and enthusiast programmers

select 
    p.Id,
    case 
      when p.Tags like '%status-completed%' then 'Completed'
      when p.Tags like '%status-declined%' then 'Declined'
      else 'Not Completed'
      end [Status],
    p.CreationDate
  from Posts p
  where 
    p.PostTypeId = 1 and
    p.Tags like '%burninate-request%'

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results