Combine queries
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2013 10:02 AM
Hi,
I wonder if there is any way to combine multiple queries.
To be more specific I have to do a search on several custom aspects.
An example for the queries to combine are the following:
and
these two queries give me results. I've tried:
but this won't give me any results.
Then I tried with the union
but this returns me the error that the "Union" is unknown.
I'm using opencmis.
Has anyone an idea?
I wonder if there is any way to combine multiple queries.
To be more specific I have to do a search on several custom aspects.
An example for the queries to combine are the following:
select d.cmis:objectId from cmis:document as d join accident:reponse as a on d.cmis:objectId = a.cmis:objectId
and
select d.cmis:objectId from cmis:document as d join accident:foto as a on d.cmis:objectId = a.cmis:objectId
these two queries give me results. I've tried:
select d.cmis:objectId from cmis:document as d join accident:reponse as a on d.cmis:objectId = a.cmis:objectId join accident:foto as f on d.cmis:objectId = f.cmis:objectId;
but this won't give me any results.
Then I tried with the union
select d.cmis:objectId from cmis:document as d join accident:reponse as a on d.cmis:objectId = a.cmis:objectId union select d.cmis:objectId from cmis:document as d join accident:foto as a on d.cmis:objectId = a.cmis:objectId
but this returns me the error that the "Union" is unknown.
I'm using opencmis.
Has anyone an idea?
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2013 11:24 AM
keyword Union is not included in CMIS query specification
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2013 12:04 PM
So is there any other way to combine queries?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2013 09:36 AM
Using CMIS query ,as far as I know there is no way.
