As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
SELECT node.id AS version_id , nodeSeries.id AS series_id , propFileName.string_value AS name , propVersion.string_value AS version , url.content_url , node.uuid AS version_uuid , nodeSeries.uuid AS series_uuid FROM alf_node AS node INNER JOIN alf_node_properties AS propSeries ON node.id = propSeries.node_id INNER JOIN alf_node_properties AS propVersion ON node.id = propVersion.node_id INNER JOIN alf_node_properties AS propFileName ON node.id = propFileName.node_id INNER JOIN alf_node_properties AS propContent ON node.id = propContent.node_id INNER JOIN alf_qname AS qnameFrozen ON qnameFrozen.id = propSeries.qname_id INNER JOIN alf_qname AS qnameVerLabel ON qnameVerLabel.id = propVersion.qname_id INNER JOIN alf_qname AS qnameLocalName ON qnameLocalName.id = propFileName.qname_id INNER JOIN alf_qname AS qnameContent ON qnameContent.id = propContent.qname_id AND qnameLocalName.ns_id = qnameContent.id INNER JOIN alf_namespace AS namespaceVersion ON qnameVerLabel.ns_id = namespaceVersion.id INNER JOIN alf_namespace AS namespaceContent ON qnameContent.ns_id = namespaceContent.id INNER JOIN alf_content_data AS ContentData ON propContent.long_value = ContentData.id INNER JOIN alf_content_url AS url ON ContentData.content_url_id = url.id INNER JOIN alf_node AS nodeSeries ON propSeries.long_value = nodeSeries.id WHERE ( qnameFrozen.local_name = 'frozenNodeDbId' ) AND ( qnameVerLabel.local_name = 'versionLabel' ) AND ( qnameLocalName.local_name = 'name' ) AND ( qnameContent.local_name = 'content' ) AND ( namespaceContent.uri = 'http://www.alfresco.org/model/content/1.0' ) AND ( namespaceVersion.uri = 'http://www.alfresco.org/model/versionstore/2.0' )