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.ownerdisplayname,
    pt.name as postType,
    vt.name as voteType
from posts p
left join posttypes pt on pt.id = p.posttypeid
left join votes v on v.postid = p.id
left join votetypes vt on vt.id = v.votetypeid
--join users u on u.id = v.userid
where p.id = 266304
or p.parentid = 266304

Enter Parameters

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