Votes

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

-- Enter Query Title
-- Enter Query Description

select p.id as postId,
p.parentid,
    p.ownerdisplayname,
    pt.name as postType,
    vt.name as voteType,
    u.displayname as displayName
from posts p
join posttypes pt on pt.id = p.posttypeid
join votes v on v.postid = p.id
join votetypes vt on vt.id = v.votetypeid
left join users u on u.id = v.userid
where p.id = 14610197
or p.parentid = 14610197

Enter Parameters

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