誰かがこのクエリについて私を助けることができれば. 以下のクエリを使用していますが、機能していません
WITH cte AS
(select sb.ImageId, sb.LicenceType, sb.ImgCollection, sb.nbofviews, sb.orientation, sb.shootdate, sd.ImgName, sd.Caption, sd.ImgPath, sd.ImageType, sd.ImgHoverPath, sc.image_color from searchinitial si INNER JOIN SearchBrain sb ON si.ImageId = sb.ImageId INNER JOIN searchcolors sc ON si.ImageId = sc.ImageId INNER JOIN searchdetails sd ON si.ImageId = sd.ImageId where si.Primarykeyword in (Select Primary_kwd from p2_kwdmgmt where all_kwd in ('man','jumping', 'beach'))group by si.ImageIDhaving count(distinct si.Primarykeyword) = 3 order by si.imageid desc)
SELECT * FROM cte WHERE ROW BETWEEN 0 AND 31