JohnBurmester
Programmer
Hello.
First of all sorry for the bad english and poor CR knowledge.
I want to do a quite easy thing but do not know how to do it. I have several tables connected through ids. One of them is connected through 2 ids. SQL would look like the following:
SELECT FROM tab1, tab2, tab3, tab4, tab5
where tab1.id1=tab2.id1
AND tab2.id2=tab3.id2
AND tab3.id3=tab4.id3
AND tab4.id4=tab5.id4
AND tab1.id1=tab5.id1
How can I use these Tables in CR (8.5) ?
If I just connect it through the visual connection wizard (is it called like that in english?) I get a message (translated, so its something like that): "Several path for one table existent. Try reversing a path."
Reversing is not possible because that would create a cycle.
If I just ignore the message, CR does a join with the table without acknowledging the existence of the restriction. It joins my data in Tab1-Tab4 with every record from tab5 where id1=id1.
Hope this is uderstandable and someone has an easy solution?
Another question: Is there a way to use simple SQL within CR? Like this I could (well I imagine it being posible) use something like:
select from tab5 where tab5.id1 = {tab1.id1} AND tab5.id4 = {tab4.id4}.
However the table should be unconnected which would create the undesired join, too?
Any help would be greatly appreciated. Thanks in advance.
John Burmester
First of all sorry for the bad english and poor CR knowledge.
I want to do a quite easy thing but do not know how to do it. I have several tables connected through ids. One of them is connected through 2 ids. SQL would look like the following:
SELECT FROM tab1, tab2, tab3, tab4, tab5
where tab1.id1=tab2.id1
AND tab2.id2=tab3.id2
AND tab3.id3=tab4.id3
AND tab4.id4=tab5.id4
AND tab1.id1=tab5.id1
How can I use these Tables in CR (8.5) ?
If I just connect it through the visual connection wizard (is it called like that in english?) I get a message (translated, so its something like that): "Several path for one table existent. Try reversing a path."
Reversing is not possible because that would create a cycle.
If I just ignore the message, CR does a join with the table without acknowledging the existence of the restriction. It joins my data in Tab1-Tab4 with every record from tab5 where id1=id1.
Hope this is uderstandable and someone has an easy solution?
Another question: Is there a way to use simple SQL within CR? Like this I could (well I imagine it being posible) use something like:
select from tab5 where tab5.id1 = {tab1.id1} AND tab5.id4 = {tab4.id4}.
However the table should be unconnected which would create the undesired join, too?
Any help would be greatly appreciated. Thanks in advance.
John Burmester