Test query carousel

From Wikiyouth
Revision as of 18:51, 11 June 2025 by Admin (talk | contribs)

88


page titlepictures/filecaption
Data:Pictures/1File:C012C22F-368F-4C42-A04C-15087407B322.JPG 
Data:Pictures/7File:IMG_3335_3.jpg 
Data:Pictures/11File:0c98c1419d7722415e14285de00b911a 2.JPEG 
Data:Pictures/8File:IMG_3647.jpg 
Data:Pictures/2File:6F5433CC-0802-4FFB-A3D5-EC507E10E24D.JPG 


SELECT t0.page_id AS `page_id`,GROUP_CONCAT(t0.path SEPARATOR 0x1E) AS `p0`,GROUP_CONCAT(t0.value SEPARATOR 0x1E) AS `c0`,GROUP_CONCAT(t1.path SEPARATOR 0x1E) AS `p1`,GROUP_CONCAT(t1.value SEPARATOR 0x1E) AS `c1` FROM (SELECT t.value,t.page_id,p.path_no_index,p.path,p.path_parent,p.schema_id FROM `visualdata_text` `t` JOIN `visualdata_props` `p` ON ((p.id=t.prop_id)) WHERE schema_id = '15' AND path_no_index = 'pictures/file' ) `t0` LEFT JOIN (SELECT t.value,t.page_id,p.path_no_index,p.path,p.path_parent,p.schema_id FROM `visualdata_text` `t` JOIN `visualdata_props` `p` ON ((p.id=t.prop_id)) WHERE schema_id = '15' AND path_no_index = 'pictures/caption' ) `t1` ON (((t1.page_id=t0.page_id) AND (t0.path_parent = t1.path_parent))) JOIN `page` `page_alias` ON ((page_alias.page_id = t0.page_id)) WHERE t0.schema_id = '15' AND ((t0.value IS NOT NULL)) GROUP BY t0.page_id LIMIT 50