CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 self join table 6 times

Print topic Send  topic

Author Message
kklou

Posts: 4
Posted: 07/10/2007, 2:50 AM

Hi, CCS expertises,

To make a BOM structure, assembly and components relationship,
when building 6-level SQL select statement in CCS (i.e. a table is added into the SQL builder screen 6 times, then the first one left join to the 2nd, the 2nd left join to the 3rd, ...), an error occurred. When seeing the live page, can not find the 4th level.
When i reduced the levels to 3, no error at all.

Is there any limitation of the ODBC or MySQL, or is there any setting can let me loop this self join 6 times or more?

If not, pls advise how to work around this.

thanks in advance.
View profile  Send private message
Wkempees
Posted: 07/10/2007, 4:04 AM

Are you actually joining one table to itself 6 times?
That is what I read from your post.
DonB
Posted: 07/10/2007, 11:12 AM

What is the error?

Is this a grid? Is the grid's maximum record per page setting exceeded?
This is a property you can change to whatever value you like either at
design-time or run-time.

If it's MySQL 5, there's the option to put the query into a view, which
would certainly eliminate any issue with OCBC imposing a limit, if that's
the reason.

--
DonB

http://www.gotodon.com/ccbth


"kklou" <kklou@forum.codecharge> wrote in message
news:546935649e350a@news.codecharge.com...
> Hi, CCS expertises,
>
> To make a BOM structure, assembly and components relationship,
> when building 6-level SQL select statement in CCS (i.e. a table is added
into
> the SQL builder screen 6 times, then the first one left join to the 2nd,
the 2nd
> left join to the 3rd, ...), an error occurred. When seeing the live page,
can
> not find the 4th level.
> When i reduced the levels to 3, no error at all.
>
> Is there any limitation of the ODBC or MySQL, or is there any setting can
let
> me loop this self join 6 times or more?
>
> If not, pls advise how to work around this.
>
> thanks in advance.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

kklou

Posts: 4
Posted: 07/10/2007, 9:41 PM

Hi, CCS expertises,

i think i should not have made this - self join so many times, since it is too slow.

i should use some other methods to achieve this.

Anyone can suggest me a simple function/program or any existing example for finding the nth level components breadkdown?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.