Posts commended only once

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

select 
  postid as [Post Link],
  rn,
  id as [Comment link], 
  creationdate, 
  text


from (
	select 
	  postid,
	  id, 
	  creationdate, 
	  text, 
	  row_number() over (partition by postid order by id) as rn
	from comments
	where userid = ##userid## ) t

order by creationdate

Enter Parameters

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