amazon links

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
  SUM(p.HasRadsLink) as [Posts With rads Redirect Links],
  SUM(p.HasAmazonLink) as [Posts With Amazon Links]
  from (select
    top 10000
    q.*,
    SIGN(CHARINDEX('rads.stackoverflow.com', q.Body)) as HasRadsLink,
    SIGN(CHARINDEX('www.amazon.com', q.Body)) as HasAmazonLink
    from Posts q
    order by q.Id desc
  ) p

Enter Parameters

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