posts with more image markdown than html images


Please login or register to vote for this query.

(click on this box to dismiss)

Super User

Q&A for computer enthusiasts and power users

select postid as [Post Link],
mdi.numimages as numMarkdownImages,
hi.numimages as NumHtmlImages,
hi.viewcount as ViewCount,
hi.score as Score,
hi.creationdate as CreationDate

(select postid,len(markdown) - len(replace(markdown, '![', 'X')) as numimages
(select ph.text as markdown,ph.postid as postid from
posthistory as ph
(select max(id) as id from posthistory where
(posthistorytypeid = 2 or posthistorytypeid = 5 or posthistorytypeid = 8) 
group by postid) as latestid
on = as md) as mdi


select id,creationdate,score,viewcount,len(body) - len(replace(body, '<img src', '<img sr')) as numimages
from posts
) as hi
on mdi.postid =

where mdi.numimages > 0 and mdi.numimages > hi.numimages

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results