select p.id as [Post Link] , coalesce(u.displayname, p.ow...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select p.id as [Post Link]
     , coalesce(u.displayname, p.ownerdisplayname) [user name]
     , u.id as [User Link]
from posts p
left outer join users u on u.id = p.owneruserid
where coalesce(u.displayname, p.ownerdisplayname) like '%##username##%' collate  sql_latin1_general_cp1_ci_ai

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results