02-14-2013 12:59 PM
02-21-2013 09:21 AM
03-12-2013 12:51 PM
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' )
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.